How do I make my iOS7 UITableViewController NOT appear under the top status bar?

前端 未结 13 2087
旧巷少年郎
旧巷少年郎 2020-12-13 14:04

My root controller is a TabBarController (tabbed application). One of the tabs, is a UITableViewController. When I switch to that and scroll through the items, they show up

13条回答
  •  生来不讨喜
    2020-12-13 14:34

    For me an easy solution was (code is in C# that's because appears to be invalid)...

    1. Just in the UITableViewController constructor create a new UIView (set same dimension of the TableView).

    2. Add the TableView to the new created view.

    3. Set new created View to the UITableViewController's View property...

    On the constructor of the UITableViewController

    var view = new UIView ();
    view.Frame = this.TableView.Frame;
    view.AddSubview (this.TableView);
    
    this.View = view;
    

提交回复
热议问题