iphone - UIView not responding to touches after 'removeFromSuperview' -


In my app representative, I am creating a tab controller with a group of view controllers for it and then a separate UIViewController I Show the top-most view as long as the user does not take a certain action.

I am initially covering my tab controller with another controller, but in the end, the second controller is rejected through 'removeFromSuperview', however, after this, the tab controller view Will not respond to any tap or any UI interaction. My app is not hanging because I can see that the processing is happening.

Is there a way to become a tab controller D-Facto Response after watching the most?

Here's how I get started both the Visual Controller:

Navigation controller is a tab bar UITabBarController * tabBarController = [[UITabBarController alloc ] Init]; TabBarController.viewControllers = [NSArray arrayWithObjects: Controller 1, Controller 2, Controller 3, Zero]; // Add tab bar to view [Window Adsview: Tab Bark Controller See]; // Creating a second navigation controller - Tab Bar // temporarily UIUUUUUUU controller * Visual Controller = [[MyScandwev controller Alok] initWithNibName: @ "Some View" bundle: zero]; UINavigationController * navController = [[UINavigationController alloc] initWithRootViewController: viewController]; [See Controller Release]; // Configure and show other navigation controllers [add windowviewview: [navController view]]; // Everything is visible [Window Mikeke & Wisbee]; }

How to delete the top most views:

  @interface MySecondViewController: UIViewController {} - (Zero) Dismiss ME; @end @implementation MySecondViewController - Dismiss (zero) MEE {// Here, removing this view [self.view removeFromSuperview]; } @end  

I do not like the most to see that I was adding a modal dialog and as soon as the app is launched, the screen would go there.

I think the view of your tabbar in the list is still "2". Have you tried to add it:

:

Takes the specified subview to the front of its brothers. - (Zero) bringSubviewToFront: (UIView *) View View Parameter View SubView for Transferring to Front. Availability * Available in iPhone OS 2.0 and later. Also see * - sendSubviewToBack: declared in UIView.h

If that does not help, you may have to set your tabbar in the form of a counter-attacker first.

  - (BOOL) can first responder {return yes; } - (zero) viewDidAppear: (BOOL) animated {[Super Viewedapper: Animated]; [Self-made first responder]; }  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -