Monday, 15 February 2010

ios - UITabBar setBackgroundImage not working -


<'d Html>

I'm trying to customize a Tabbar and I use the following code to change the background.

  UIImage * TabBarControllerBackground = [UIImage imageNamed: @ "ios7TabBarBackground"]; [[UITebber Presence] SetbackGage Image: Babeletrix for TabBar Controller Background: UIBarMetricsDefault];   

I get the following error:

to cancel app without exception exception 'NSInvalidArgumentException', reason: '- [_UIAppearance setBackgroundImage: forBarMetrics:] : 0x1e868a80 '

sent to an unknown selector for example? This works perfect to change my navigation bar like this. The

look around this error:

  non-exception cancellation due to app 'Ansaianaiviaidiaaragrament exception, because:' - [_UIAppearance setBackgroundImage: forBarMetrics:]: unrecognized selector sent to instance 0x1e868a80 '  

this is telling you that UIAppearance does not apply setBackgroundImage: forBarMetrics: selector

you'll leave the last argument - apparently Uaiapiarens does not like it. Change it to:

  [[UTibber Presence] Setbackgram Image: TabBer Controller Background];    

No comments:

Post a Comment