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.
UIImageviews と UILabel をサブビューとして xib で作成したビューがあります。私のコードから、ループを実行するたびに新しいビュー オブジェクトを作成することは可能ですか?助けてください。
XIB で CustomView Select クラスという名前の新しいカスタム ビューを CustomView に作成する必要があります。
次に、XIB 名を View オブジェクトにロードし、ループで使用できます
CustomView *aView = [[[NSBundle mainBundle] loadNibNamed:@"YourXibName" owner:nil options:nil] objectAtIndex:0];