I had a problem like that. All controls (or the entire view with controls)
become moved about 20 pixels to up, but this happened when compiled the
aplication for the first time with Xcode 4 and running on iOS 4 device or
iOS 4 simulator. On iOS5 all was OK and before Xcode 4, all was ok on both
iOS 4 and 5.
The change made to work around, since it appear that the problem was
something like who is the father of the viewcontroller, BTW, I found the
problem on a popover that can be open in the view depending on what is
touched. But the entire view is in wrong place if I don't change the Owner
of the popover. Weird, but this solved my case:
public override void ViewDidLoad()
{
base.ViewDidLoad();
if (UIDevice.CurrentDevice.SystemVersion.StartsWith("3.") ||
UIDevice.CurrentDevice.SystemVersion.StartsWith("4."))
CustomPopover = new UIPopoverController(this.Owner);
else
CustomPopover = new UIPopoverController(this.Owner.NavigationController);
DoSomething();
}
I can't test on iOS 3 but put a check on this, an let iOS >= 5 to use the
new way.
This.Owner is from a custom ViewController. Always I open a new one I pass
the Owner.. Like windows forms.
Karl
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch