• 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
Re: [iPhone] UINavigationController and UINavigationBar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [iPhone] UINavigationController and UINavigationBar


  • Subject: Re: [iPhone] UINavigationController and UINavigationBar
  • From: Duccio <email@hidden>
  • Date: Wed, 09 Dec 2009 01:40:14 +0100

Il giorno 09/dic/2009, alle ore 00.57, Luke the Hiesterman ha scritto:

>
> On Dec 8, 2009, at 3:51 PM, Mike Abdullah wrote:
>
>> Other alternatives:
>>
>> - Subclass UINavigationController to return a custom view from -navigationBar.
>> - Add a custom subview to the nav bar to do your drawing.
>
> I recommend neither of these. It's already been brought up that UINavigationController shouldn't be subclassed, and it isn't meant as a container for arbitrary views, either. If you really aren't satisfied with using a tint color for the background, file an ER asking for an API to provide a background image.
>

So, just to understand, why can I do that through IB but not (legally) via code? The ability to choose a class for the navigation bar in a navigation controller should have been blocked in IB?

You says about change Navigation Bar class to my subclass in IB "recommend avoiding even using this approach in IB", why? Should I read this in documentation or I would have inferred by readonly navigationBar property (because next time I would not ask the list similar question/problem)?

I started working with Cocoa Touch a few days ago and I will not only learn the techniques but also best practices, philosophy and so on...

> Luke


Thanks,
Duccio
_______________________________________________

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

  • Follow-Ups:
    • Re: [iPhone] UINavigationController and UINavigationBar
      • From: Luke the Hiesterman <email@hidden>
References: 
 >[iPhone] UINavigationController and UINavigationBar (From: Duccio <email@hidden>)
 >Re: [iPhone] UINavigationController and UINavigationBar (From: Luke the Hiesterman <email@hidden>)
 >Re: [iPhone] UINavigationController and UINavigationBar (From: Aldo Armiento <email@hidden>)
 >Re: [iPhone] UINavigationController and UINavigationBar (From: Kyle Sluder <email@hidden>)
 >Re: [iPhone] UINavigationController and UINavigationBar (From: Alex Kac <email@hidden>)
 >Re: [iPhone] UINavigationController and UINavigationBar (From: Aldo Armiento <email@hidden>)
 >Re: [iPhone] UINavigationController and UINavigationBar (From: Mike Abdullah <email@hidden>)
 >Re: [iPhone] UINavigationController and UINavigationBar (From: Luke the Hiesterman <email@hidden>)

  • Prev by Date: Re: odd problems with NSData / OpenGL
  • Next by Date: Re: [iPhone] UINavigationController and UINavigationBar
  • Previous by thread: Re: [iPhone] UINavigationController and UINavigationBar
  • Next by thread: Re: [iPhone] UINavigationController and UINavigationBar
  • Index(es):
    • Date
    • Thread