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.
UIScrollView からすべてのオブジェクトを削除するにはどうすればよいですか (内部に何が割り当てられていても、スクロール ビューを完全にクリアします)。
私はこれを試しましたが、うまくいきません:
for (UIView *subview in scroll1.subviews) { [subview removeFromSuperview]; }
この投稿への回答に投稿されたコードを試しましたか?
UIScrollView からすべてのサブビューを削除しますか?
お役に立てれば