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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com