Re: [iPhone] UINavigationController and UINavigationBar

2009-12-10 Thread Thomas Engelmeier
Am 09.12.2009 um 02:02 schrieb Duccio: > Yes, I know, but no backgroundImage property :-) And Apple documentations > says, for example: "It is permissible to modify the barStyle or translucent > properties of the navigation bar but you must never change its frame,bounds, > or alpha values dire

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-09 Thread Luke the Hiesterman
I hinted at that option in the other thread the OP started by mentioning that the bar can be translucent. I haven't tried it either, and I'm not sure what happens when clearColor gets tinted. The general strategy of going with a translucent bar seems like it might bear fruit in this case, t

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-09 Thread Alex Kac
I haven’t tried this, but could the OP get what he wants by setting a tint color of clearColor and then set a background pattern image on the window itself? On Dec 8, 2009, at 5:57 PM, Luke the Hiesterman wrote: > > On Dec 8, 2009, at 3:51 PM, Mike Abdullah wrote: > >> Other alternatives: >>

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
>> 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

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
Il giorno 09/dic/2009, alle ore 01.49, Luke the Hiesterman ha scritto: >> >> 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 ab

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Luke the Hiesterman
On Dec 8, 2009, at 4:40 PM, Duccio wrote: > 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. >>

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
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 drawi

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Mike Abdullah
On 8 Dec 2009, at 23:57, Luke the Hiesterman wrote: > > 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 recomme

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Luke the Hiesterman
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 UINavigationCont

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Mike Abdullah
On 8 Dec 2009, at 20:49, Aldo Armiento wrote: > 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 balanc

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
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 UINavigatio

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread David Duncan
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 > otherwis

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Luke the Hiesterman
On Dec 8, 2009, at 1:13 PM, Duccio wrote: > > Il giorno 08/dic/2009, alle ore 21.53, Luke the Hiesterman 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 Contr

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
Il giorno 08/dic/2009, alle ore 21.53, Luke the Hiesterman 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 U

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Luke the Hiesterman
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 > otherwi

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Aldo Armiento
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, >

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Alex Kac
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 b

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Kyle Sluder
On Tue, Dec 8, 2009 at 12:00 PM, Aldo Armiento 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

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Aldo Armiento
Il giorno 08/dic/2009, alle ore 20.40, Luke the Hiesterman ha scritto: > You could subclass UINavigationController. > I can't (or I should't): "This class is not intended for subclassing. Instead, you use instances of it as-is in situations where you want your application’s user interface to r

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Luke the Hiesterman
You could subclass UINavigationController. Luke On Dec 8, 2009, at 9:46 AM, Duccio wrote: > Hi. > > I created CustomNavBar subclassing UINavigationBar. > > In Interface Builder I drag a Navigation Controller (UINavigationController) > from the library to the document. Under this object in doc

[iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
Hi. I created CustomNavBar subclassing UINavigationBar. In Interface Builder I drag a Navigation Controller (UINavigationController) from the library to the document. Under this object in document window I can see a Navigation Bar (UINavigationBar). Clicking it and using the Identity Inspector