2

Just started targetting IOS 7 with Xamarin Studio but now my monotouch dialog views are partially hidden behind top navigation bar and clock.

How to reveal them/resize view/fix?

fractal
  • 1,649
  • 17
  • 31

3 Answers3

1

Although adding a padding to the top will fix your problem, maybe the best thing to do is use the Property that Xamarin provides just for this issue:

EdgesForExtendedLayout = UIRectEdge.None;

You can set this in the ViewDidLoad() method.

Boris
  • 389
  • 4
  • 12
0

I did it by adding a top padding. The simplest way of adding this padding is to take advantage of the Section headers and footers.

var margin = new UIView (new RectangleF (0, 65, 1, 200)); //200 View Height, 65 Margin Top
var section = new Section (margin);

In that section you add your elements.

eMi
  • 5,540
  • 10
  • 60
  • 109
0

Except if you're using a UINavigationController, the top bar is now part of the screen estate you have to use. If you want your app to be compatible in ios 6 and 7, there's some delta you can set in IB

Stephane Delcroix
  • 16,134
  • 5
  • 57
  • 85