1

アプリケーションの設計の一環として、UITableViewのヘッダー内に画像を配置しました。

このヘッダー画像は、テーブルがスクロールされるまで見栄えがよく、ヘッダーがスクロールされる位置に相対的に移動します。

私の質問は、これが起こらないようにするにはどうすればよいですか? 別の方法で行う必要があると思います。つまり、UIImageView上に a を配置UITableViewして、スクロールとは関係ありません。UIImageViewただし、 の外側には入れられませんUITableViewController

どうすればいいですか?

4

2 に答える 2

0

To solve my problem, I used a group tableview as their section headers scroll with the content and don't 'stick' under the navigation bar, i then stretched the tableview to an extra 10 each side, and pushed it 10 points to the left, 'getting rid' of the margins.

I then used custom tableview cells to design my own custom cells.

于 2012-08-12T21:10:32.930 に答える
0

このビュー階層を持つビュー コントローラーを作成します。

view
 \---> header view //set the frame to be the top 200 pixels or whatever you want
 \---> table view // instead of being the top view, the table view is a subview with a frame starting below the header view

テーブルビューのデリゲートとデータソースを設定し、通常どおり使用します

于 2012-08-06T18:54:17.030 に答える