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 値が特定の値に達すると削除されます。センサーのコードは次のとおりですが、120 に達したら削除します。
CGRect frame = Image.frame; if (frame.origin.x>120) { NSLog(@"delete"); }
imageviewを削除するには、これを行います。
[myImageView removeFromSuperview];
(myImageViewimageviewの名前はどこにありますか)
myImageView