-1

iPhone/iPad用のアプリケーションを設計しました。私の問題は、カテゴリとサブカテゴリを表示するために単一の RootViewController を使用していることです。

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

[self.navigationController popViewControllerAnimated: YES];

しかし、ipad では、ナビゲーション バーの下に検索バーが隠れてしまいます。

-(void)viewWillAppear
4

1 に答える 1

0

ソリューションを手に入れました

まず、canelボタンが押されたときに、テーブルをリロードします[self.tableView reloadData]; 次に、テーブル内のどのインデックスで、secondviewcontrollerからfirstviewcontrollerに移動しますか。

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

-viewDidLoadで行を選択する場合に必要

[self.tableView selectRowAtIndexPath:indexPathアニメーション:はいscrollPosition:UITableViewScrollPositionTop];

于 2010-10-25T09:01:47.690 に答える