I have a common header and common footer in all the view controllers of an iPhone application.
What I want to do is, I want to separate the header and footer into different nib, .h and .m files and want to integrate these into one view.
How to do that?
Thanks all.
Guru
You can create 2 UIViewController(s):
Then in you view you add them by code: (Or via Interface Builder if you want)
In IB: Add a new UIViewController in IB, change the classe UIVIewController by HeaderViewController, link it with an
IBOutlet(header), then you just have to do[self.view addSubview:header.view];.