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.
ビューを動的に追加しますが、フォームに表示されると左上隅にあります。
新しいサブビューの X と Y はどこで設定しますか?
フレーム プロパティを設定する必要があります。
myView.frame = CGRectMake(10,10,200,100);
これにより、ビューが位置 (10,10) に配置され、サイズは 200x100 になります。