ios4 - How to bring up text on image in uipickerview -
before insert image in uipickerview
after insert image in uipickerview
- (uiview *) pickerview:(uipickerview *)pickerview viewforrow:(nsinteger)row forcomponent:(nsinteger)component reusingview:(uiview *)view { cgrect imageframe = cgrectmake(0.0, 0.5, 255, 250); uiimageview *label = [[uiimageview alloc] initwithframe:imageframe]; label.backgroundcolor=[uicolor scrollviewtexturedbackgroundcolor]; [label sendsubviewtoback:pview]; [pview sendsubviewtoback: label]; [pview addsubview:label]; return label; }
in code have written this:-
[label sendsubviewtoback:pview]; [pview sendsubviewtoback: label];
i think doing mistake here..
you use this:-
[label sendsubviewtoback:pview]; [label addsubview:pview];
remove this
[pview sendsubviewtoback: label];
it work fine..if not feel free ask..enjoy..
Comments
Post a Comment