Hey I have made a background in adobe photoshop which I would like to use on my UINavigationBar, but there doesn’t seem to be any pre made way to do so. I have looked to some articles regarding that, but most of them seemed a bit confusing and some looked very outdated. So could someone enlighten me, how to achieve this?
Thanks!
The supported way to do this is to create a custom subclass of
UINavigationBarand implementdrawRect:in that custom subclass to draw your image.Then, in Interface Builder you should set up a nib with a
UINavigationControllerin it – select theUINavigationBarinstance in that nib and set its custom class to your subclass. When you load theUINavigationControllerfrom the nib, yourUINavigationBarsubclass will be loaded instead.