Il giorno 08/dic/2009, alle ore 21.37, Alex Kac ha scritto: > At least on the iPhone I can say that using NIBs can add a short delay or > slow some UI operations down. Normally we prefer to use IB everywhere we can. > On the iPhone we balance it more. Places where pure code is not difficult, > we'll go that route because its noticeably faster. While its gotten better in > iPhone OS 3.0+, I can say that there have been a few places where using a NIB > creates a non-smooth experience whereas using pure code is smooth as butter. > And this is borne out in tech talks and WWDC recommendations. >
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? Duccio > iPhone dev has to keep in mind the fact its a CPU/memory limited device. > > On Dec 8, 2009, at 2:17 PM, Kyle Sluder wrote: > >> On Tue, Dec 8, 2009 at 12:00 PM, Aldo Armiento <lists.ap...@me.com> wrote: >>> The question is: why can I use my custom subclass of UINavigationBar in a >>> UINavigationController using IB and I can't do it programmatically? All >>> that can be done in IB should not be able to do programmatically? >> >> I guess one question is, "why do you want to do this >> programmatically?" Prefer IB over writing code. >> >> Though you're right, you should be able to at least specify the class >> of navigation bar, if not provide your own instance. >> >> --Kyle Sluder >> _______________________________________________ >> >> 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: >> http://lists.apple.com/mailman/options/cocoa-dev/alex%40webis.net >> >> This email sent to a...@webis.net > > Alex Kac - President and Founder > Web Information Solutions, Inc. > > "There will always be death and taxes; however, death doesn't get worse every > year." > -- Anonymous > > > > _______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com