-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[tableView deselectRowAtIndexPath:indexPath animated:NO];
if (indexPath.row == 0) {
LDMyHomeViewController *myhome = [[LDMyHomeViewController alloc]init];
<span style="color:#ff0000;">myhome.hidesBottomBarWhenPushed = YES;//此处设置后,其他地方无需设置</span>
[self.navigationController pushViewController:myhome animated:YES];
}
}
hidesBottomBarWhenPushed 使用
最新推荐文章于 2019-06-24 16:10:35 发布