iphone - Remove selection image from tabbar item on modal view dismiss -
i have tab bar based app.
i have selected/de-selected image set every tab bar item.
on first tab have button opens modalviewcontroller.
at time when modal view activated, tab bar item state selected , has selection image.
when modal view pops , selection image still there. when dismiss modal view, want selction image of tab bar item changed other image.
how alter image on modal view dismiss?
i'm trying following, doesn't work:
[[[self.tabbarcontroller.tabbar items] objectatindex:0 ] setselectionindicatorimage:[uiimage imagenamed: @"abc.png"] ]; please help.
thanks in advance.
the titles , images of tab bar items supposed set controller in tab, not tab bar controller. so, should seek changing tab in controller in first tab. method you're using stand-alone tab bar, not 1 that's controlled tab bar controller. can this:
-(void)changetitle{ [self.tabbaritem setfinishedselectedimage:[uiimage imagenamed:@"one.jpg"] withfinishedunselectedimage:[uiimage imagenamed:@"two.jpg"]]; } iphone ios objective-c modalviewcontroller uitabbaritem
No comments:
Post a Comment