UINavigationBar, setTintColor: and UIColor colorWithPatternImage:

2009-12-09 Thread Duccio
Related to "[iPhone] UINavigationController and UINavigationBar". - Instantiating a color using colorWithPatternImage: UIColor *color = [UIColor colorWithPatternImage:[UIImage imageNamed:@"image.png"]]; and using it to set

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
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 directly." so very restrictive... > Hope that helps, and I wish you the best w

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
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 (Cocoa-dev@lists.apple.com) Please do n

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 Duccio
nd it's not really meant > to contain anything other than a stock UINavigationBar, I'd recommend > avoiding even using this approach in IB. If there is some customization you > need that is not already available, I recommend filing an ER. > I'm new to Apple development, w

[iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread Duccio
uld I do to customize the navigation bar programmatically? Is IB more "powerful" than "code"? I believed all that can be done in IB could be done also programmatically. Duccio. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: Localizing Xibs using bindings

2009-12-08 Thread Duccio
Il giorno 05/dic/2009, alle ore 19.05, Rossi Matteo ha scritto: > I find it very annoying to localize Xibs by keeping a copy for each > translation. It's both tedious and error-prone. > I've found that by simply binding each button's title (or wharever other > control you need) to the appropriat