• 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: Tue, 08 Dec 2009 22:31:02 +0100

Il giorno 08/dic/2009, alle ore 22.19, David Duncan ha scritto:

> On Dec 8, 2009, at 12:49 PM, Aldo Armiento wrote:
>
>> But it seems that in this case I can't use my UINavigationBar subclass if I instantiate a Navigation Controller programmatically, so the only way to use my UINavigationBar subclass is to instantiate a Navigation Controller in IB otherwise I can't change UINavigationBar class/instance, this makes sense? I'm forced to use IB?
>
>
> Since we've come around to "file an ER" then an appropriate question seems to be what are you trying to accomplish by subclassing the UINavigationBar?

I'm drawing a navigation bar background image overriding drawRect: method. If in Interface Builder I change Navigation Bar class from UINavigationBar to CustomNavigationBar it works properly. How do that programmatically?

@interface CustomNavigationBar : UINavigationBar {
}
@end

@implementation CustomNavigationBar
- (void)drawRect:(CGRect)rect {
	[[UIImage imageNamed:@"image.png"] drawInRect:rect];
}
@end

> --
> David Duncan
> Apple DTS Animation and Printing
>

_______________________________________________

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

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: David Duncan <email@hidden>)

  • Prev by Date: Re: CAShapeLayer and touches?
  • Next by Date: Re: Big memory/time consumption in NSTreeController KVO GC
  • Previous by thread: Re: [iPhone] UINavigationController and UINavigationBar
  • Next by thread: Re: [iPhone] UINavigationController and UINavigationBar
  • Index(es):
    • Date
    • Thread