In my app i am having following scenario
- There is thread running in background which check some flag is on or not
- This thread is running for entire application.
- If flag found “on” then go to some view (pushed from navigationcontroller)
- So i need to discard or remove all other UI components like UIAlertView ,UIActionSheet etc
In my case when i pushed the view controller then actionsheet open is not discarded automatically
How can i remove all other UI Components already initiated whenever the view is pushed
Please do write to this thread
Thnx in advance
Parag Deshpande
-(void)removeSubView:(UIView view)
{
NSArray arr =view.subViews;
for(UIView* tmp in arr)
{
}