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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -