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.
私はiphone開発に慣れていません.テーブルビューの背景画像を表示しようとすると、すべてのセルに画像が表示されます.画面に収まり、すべてのセルに表示されない単一の画像を表示したい.助けてください.ありがとう.
テーブルビューを a のサブビューにしますUIView( と呼びましょうparentView)。次に、テーブル ビューの背景をクリアにして、UIViewその下に配置された を表示できます。UIView次に、画像ビューを含むように設定します。
UIView
parentView
self.tableView.backgroundColor = [UIColor clearColor]; [self.parentView addSubview:myImageView];