-1

我为 iphone/ipad 设计了一个应用程序。我的问题是我使用单个 RootViewController 来显示类别和子类别。

//Pop me to RootViewController Category Section From SubCategory in iphone/ipad

[self.navigationController popViewControllerAnimated: YES];

但是在 ipad 中,我的搜索栏隐藏在导航栏下。不知道该怎么做。想在导航栏下方的同一位置显示我的搜索栏 ContentOffset 为 44。

-(void)viewWillAppear
4

1 回答 1

0

刚刚得到解决方案

首先当按下canel按钮时重新加载表格[self.tableView reloadData];然后在表中的哪个索引处你想从 secondviewcontroller 到 firstviewcontroller。

NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];

如果在 -viewDidLoad 中选择行是必需的

[self.tableView selectRowAtIndexPath:indexPath 动画:YES scrollPosition:UITableViewScrollPositionTop];

于 2010-10-25T09:01:47.690 回答