0

i make app. and i don`t change backimage

i want this picture:

enter image description here

i tried two way.

one is ( UISegmentedControl name is 'seg')

seg = [[UIsegmentedControl alloc] initWithItems:nil];
[seg insertSegmentWithImage:[UIImage imageNamed:@"ttt.png"] atIndex:0 animated:FALSE];
[seg insertSegmentWithImage:[UIImage imageNamed:@"ttt_1.png"] atIndex:1 animated:FALSE];

other way is ..

[seg setImage:.........];

i hope change like that picture..

plz help me...

kennytm
  • 510,854
  • 105
  • 1,084
  • 1,005
Boinred
  • 29
  • 1
  • 4

1 Answers1

0

Use this method.....

[segmentedcontrol setImage:[UIImage imageNamed:@"down_arrow.png"] forSegmentAtIndex:1];
akjoshi
  • 15,374
  • 13
  • 103
  • 121
Govind
  • 2,337
  • 33
  • 43