• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UIAppearance for iOS provided view controllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Clang "File not found" - in cocoa app
  • Next by Date: Re: Problems converting to ARC
  • Previous by thread: Re: Preferences for network login
  • Next by thread: Third time I ask - please help. How to trace visible change in a UIView (UIWebView)
  • Index(es):
    • Date
    • Thread