1

私は本を​​読んでいます: iOS 5 開発の開始。 その例の 1 つは、UIView を UITableView のテーブル ヘッダーにドラッグすることです。

UIView を UITableView の上にドラッグしても、UIView はテーブル ヘッダーに収まりません。大きな長方形にしか見えません。

ここに画像の説明を入力 ここに画像の説明を入力

4

3 に答える 3

1

I have solve my problem. The answer is a little bit tricky, I cannot see the effect as same as the book shown, may be the interface builder has change a little bit. I can only see a small blue line on top of the table.

The view cannot be dragged directly into the table header.

  1. Drag the UIView into the view.
  2. Drag the view above the table/ drag it inside the table in the objects list at the left.
  3. Resize the view to the height of the table header

Be aware of the object hierarchy.

first step second step third step

于 2013-01-05T01:19:16.953 に答える
1

リスト(プレースホルダー、オブジェクト)の「テーブルビュー」のすぐ下にビューをドラッグすると、そこに挿入されます。

于 2013-01-04T18:59:49.837 に答える
1

1 つのことを行い、ペン先でテーブルを選択し、そのプロパティに移動します。ペン先のサイズインスペクターに移動し、セクションの高さを変更する必要があるテーブルビューサイズを選択します。たとえば、80ピクセルにすると、そこにビューを配置して高さを80にすることができます. ビューのフレームも変更して、テーブル ビュー ヘッダーの上に適切に配置します。あなたのペン先からもできることは、それがあなたを助けることを願っています.

ありがとうサビー

于 2013-01-04T19:50:30.903 に答える