I am working on iPhone app. I have added Navigation bar Background image
With interface: –
@interface UINavigationBar (backgroundImageWithTitle)
And method: –
- (void)drawRect:(CGRect)rect
By this method Navigation bar background images is being set one time.
I want to call it from different .m files for assigning different images on bar.
How it can be implemented?
Thanks in advance.
CustomNavigation.h
CustomNavigation.m
if u want to First.png to set navigationBar background image in FirstViewController then
in ur FirstViewController.m
if u want to Second.png to set navigationBar background image in SecondViewController then
in ur SecondViewController.m