views:

33

answers:

1

Hi Guys,

I got one problem, that is when I tab the UITabBarController buttons, While Loading the data, I am getting exception. How can I get through it.

Is there any idea or can we disabled the buttons but it is opposite to programing.

A: 

You can disable and enable all of your UI with

[[UIApplication sharedApplication] beginIgnoringInteractionEvents];

[[UIApplication sharedApplication] endIgnoringInteractionEvents];

That being said, I recommend digging down and understanding why the app crashes, as you will want to solve the problem and not hide bugs.

One quick shot: Are you doing the loading on another thread? You may only update the UI from the main thread.

Eiko