views:

50

answers:

1

Hello,

I'm developing an app using a fork of LeavesViewController that changes to a two-page orientation when the device turns to landscape.

When using the Leaves controller alone, everything works fine.

When using the Leaves controller inside the view of my main UIViewController, it never gets any of the device rotation messages (however my main UIViewController does).

What can I do to make the Leaves controller reaceive the device rotation messages?

Thanks.

A: 

You're not supposed to nest UIViewControllers like that. In practice you can, but they're not managed by UIKit so you lose the functions that are usually called by the framework (viewWillAppear: and friends, I think).

You can forward the rotation methods yourself.

tc.
I know but then I should adapt the LeavesViewController to be an UIView and I'm too lazy hehe.
almosnow