Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Navigation Controller and OOP

samtakoysamtakoy Posts: 570Registered Users @ @ @
Hi,

This to me sounds like an FAQ, but I haven't been able to find the answer. I have a navigation controller which is a variable in my app delegate.

Now suppose that from somewhere else in the app I need to push a view controller. I imagine three reasonable ways of doing.
1. Create a singleton-type global reference to the navigation controller
2. Access it through sharedApplication
3. Post a notification and let the delegate handle it.

Is there a 4th? And which one is best?

Thanks!

Sam
Sign In or Register to comment.