1

検索バーとスコープ バーを備えた TableView を使用しています。ウィンドウの右側にセクション インデックスを追加しました。

myTableView.tableHeaderView = searchBar;
searchBar.delegate = self;
searchBar.showsCancelButton = YES;
searchBar.showsScopeBar = YES;

最初のセクション インデックスは、検索バーとスコープ バーの上に描画されます。

インデックス列のフレームを変更するにはどうすればよいですか?

ありがとう

ライオネル

スクリーンショット

4

1 に答える 1

0

それで、あなたの 1 つまたは 2 つの行tableViewhiding behind your scope bar and search bar. 問題は、する必要があることですbind a tableView to your scopeBar。したがって、スコープバーの下に tableView がバインドされます。

コードで次のように試してください。

//tableView is a table outlet name
//scopeBar is your scope bar outlet name

[tableView setTableHeaderView:scopeBar];

このコードはあなたtableViewをバインドしscope barます。not behind the scope barshow down to that bar

于 2012-05-01T08:13:44.063 に答える