如何在NavigationBar下使用iOS UITableView?

问题描述:

我已设置

NavigationController.NavigationBar.Translucent = true;

然后将表格和设置框架添加到RootView框架中,并且:

Then add table and set frame to RootView Frame, and:

    public override void ViewDidLayoutSubviews()
        {
            base.ViewDidLayoutSubviews();
            float y = this.TopLayoutGuide.Length;
            table.ContentInset = new UIEdgeInsets (y, 0, 0, 0);
        }

但是,我在NavigationBar 下有桌面滚动条(我使用monotouch ):

But, I Have table Scroll Bar under NavigationBar (I use monotouch):

我用这个简单的代码解决了任务:

I solved task with this simple code:

table.ScrollIndicatorInsets = new UIEdgeInsets(64, 0, 0, 0);