objective c - UISegmentedControll not setting correct image -


i'm trying set custom image each segment control index in uisegmentedcontroll

i setting image so:

uiimage *selectall = [uiimage imagenamed:@"select active"]; [selectall imagewithrenderingmode:uiimagerenderingmodealwaysoriginal];  [self.segmentedcontrol setimage:selectall forsegmentatindex:0]; 

however white space in segment index , image doesn't show correctly.

is there different way this?

i building app ios7 only.

edit

here looks image set in ib or code:

enter image description here

sounds image not exists, sure named 'select active.png'? suggest rename test.png first see if works.


Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -