开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜