This is a bit tricky, because we have to take into account there may be nav controllers, also there seems to be a quirk (bug?) when a nav controller is in the 'more' tab.

The code I wrote below needed to know this for the purposes of allowing the currently visible view to determine whether or not to allow landscape mode. Hope it helps someone!

Thanks for reading! And if you want to get in touch, I'd love to hear from you: chris.hulbert at gmail.

Chris Hulbert

(Comp Sci, Hons - UTS)

iOS Developer (Freelancer / Contractor) in Australia.

I have worked at places such as Google, Cochlear, Assembly Payments, News Corp, Fox Sports, NineMSN, FetchTV, Coles, Woolworths, Trust Bank, and Westpac, among others. If you're looking for help developing an iOS app, drop me a line!

Get in touch:
[email protected]

 Subscribe via RSS