ios4 - How to bring up text on image in uipickerview -


before insert image in uipickerview enter image description here

after insert image in uipickerview

enter image description here

- (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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -