开发者

remove a button from application at runtime

开发者 https://www.devze.com 2023-02-07 13:29 出处:网络
I have a xcode/ipad application that adds buttons at runtime at the touch point on the screen. Now I need to remove these button(s) at runtime by only using the x/y coordinates.

I have a xcode/ipad application that adds buttons at runtime at the touch point on the screen.

Now I need to remove these button(s) at runtime by only using the x/y coordinates.

How 开发者_StackOverflow社区do I accomplish this??

take care

tony


not the best and fastest way to do it, but iterate over the parent view's control list, find out their relative x/y coordinates and remove them from the parent view

0

精彩评论

暂无评论...
验证码 换一张
取 消