Have you considered adjusting your layout in LayoutSubviews() of you view
instead? This will always get called if layouting is required.
And what iOS version are you on? If 5.0 and above, use
PresentViewController() (with a modal context) instead of
PresentModalViewController() and your rotation events should trigger.

René

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Mg
Gesendet: Sonntag, 6. Mai 2012 03:00
An: [email protected]
Betreff: [MonoTouch] How to handle rotation when presenting another view
controller?

I have a view controller with some UILabels on it that I need to move when
the device rotates (beyond what can be accomplished with autoresizing). I
have an animation in the WillRotate method which moves the labels as needed.

The problem is when I modally present another view controller and device
orientation changes before that controller is dismissed. When my first
controller is displayed it has rotated as well, except that any adjustments
I made in WillRotate are not applied. Apparently this method is not called
while the other controller is active. How can I fix this?



--
View this message in context:
http://monotouch.2284126.n4.nabble.com/How-to-handle-rotation-when-presentin
g-another-view-controller-tp4612173.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to