UINavigation Bar与tableView偏移

时间:2015-08-24 17:57:48

标签: ios objective-c uitableview

下午好!我正在为iPhone写一个小应用程序。我有一个问题 - 我滑倒了表格单元格,随着它移动导航栏。我翻找了所有相关问题,但找不到问题。我希望得到你的帮助。

ViewDidLoad()中的我的代码:

self.automaticallyAdjustsScrollViewInsets = NO;
self.edgesForExtendedLayout = UIRectEdgeNone;
[self.navigationController.navigationBar setTranslucent:NO];
self.cellName = [NSArray arrayWithObjects:@"Sport", @"Media", @"Love", nil];
self.tableView.separatorColor = [UIColor lightGrayColor];
self.tableView.backgroundColor = [UIColor clearColor];
self.tableView.contentInset = UIEdgeInsetsMake(85, 0, 0, 0);
[self.tableView setBackgroundView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"SlideMenu.png"]] ];
[self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];

我在85px向下偏移我的self.tableView,用tableView偏移导航栏偏移(( Thanx寻求帮助

0 个答案:

没有答案