UIAppearance for iOS provided view controllers
UIAppearance for iOS provided view controllers
- Subject: UIAppearance for iOS provided view controllers
- From: Alex Kac <email@hidden>
- Date: Sat, 20 Apr 2013 13:34:20 -0600
We customize the look of UIBarButtonItems in our app - which looks and works great EXCEPT it also applies to the iOS provided view controllers which do NOT look correct. Here is what we're doing:
id barButtonItemProxy = [UIBarButtonItem appearanceWhenContainedIn:[UINavigationController class], nil];
id mailButton = [UIBarButtonItem appearanceWhenContainedIn: [UINavigationBar class],NSClassFromString(@"MFMailComposeViewController"),[UINavigationController class], nil];
id personButton = [UIBarButtonItem appearanceWhenContainedIn: [UINavigationBar class],NSClassFromString(@"ABPersonViewController"),[UINavigationController class], nil];
id newPersonButton = [UIBarButtonItem appearanceWhenContainedIn: [UINavigationBar class], NSClassFromString(@"ABNewPersonViewController"), nil];
We set one image background on the barButtonItemProxy and that works great. We set a DIFFERENT image for the mail, person, and new person - so that it still looks correct in our UI, but looks correct for iOS provided ones. However it never applies. I've tried quite a few different combinations of the hierarchy without success.
Any suggestions?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden