Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
iBook を一番上までスクロールすると、リンゴのマークが表示されます (検索と 2 つのボタンの上)。そのような画像をTableViewの上に置くにはどうすればよいですか?
私の最初の推測では、Apple は画像を背景として使用し、どういうわけか正しく配置したということです。私は正しい軌道に乗っていますか?
これはであり、指定されたテーブルで (ドキュメントを確認してください)UIImageViewとして設定されるか、またはテーブル ビュー自体のサブビューとして追加されます。後者の方がおそらく簡単です。画像ビューの位置を Y 値が負の値に設定するだけです。tableHeaderViewcontentInset
UIImageView
tableHeaderView
contentInset