开发者

Prevent user tapping other controls in a view while it is loading

开发者 https://www.devze.com 2023-02-07 01:50 出处:网络
In my application i have a Home page - It has 3 buttons each button will invoke a another view, that view will have a data comes from a web services. When i press a first button it took a time to get

In my application i have a Home page - It has 3 buttons each button will invoke a another view, that view will have a data comes from a web services. When i press a first button it took a time to get data from web services and to show that view. In that time if i press an开发者_JAVA技巧other buttons that actions is invoked and that view is showed up. how to avoid the tapping of other controls when the (first button is clicked) view is loading. plz help...


Till the view loads:

anotherButton.userInteractionDisabled = YES;

Then, after loading make it NO.

0

精彩评论

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