ios - Can't show one view controller on top of another -


I am trying to show a view controller above the UITableView on the other. When the user clicks on a button, so I would like to appear on the scene controller to a view controller, where the user when the button press then say that the user feed view when they click on a button, a view controller a blur With the feed the view will slide on the controller. So basically the old visual controller will act as a blurred background for one. I TabBarController that I am trying to get some kind of Tumblr

Here's my code AppDelegate:

  - (bool) :. (UITabBarController *) TabBarController shouldSelectViewController: (UIViewController *) ViewController {if ([viewController.title isEqualToString: @ "create"] createOptionViewController * createOptionViewController =) {[createOptionViewController alloc] init]; [ViewController addChildViewController: createOptionViewController]; CreateOptionViewController.view.frame = viewController.view.bounds; [ViewController.view addSubview: createOptionViewController.view]; [ViewController.view LaosVivotroprint: CreateOptivoice Controller See]; [CreateOptionViewController didMoveToParentViewController: viewController]; no return; } Yes return; }  

What I'm trying to get here:

ViewController passed this method in the view controller that Ending is being selected if it "does not" then the controller is never selected. For example, you have a tab bar controller with 2 tabs and "Tab 1" is selected by default. If the user is tapped on "Tab 2", then the function below will be called and the "Viewer" view controller will be under "Tab 2". If YES gives this function, the view controller connected to "Tab 2" is brought in front. If the function "does not" then nothing happens. "Tab 2" associated view controller is displayed meaning

  - (bool) TabBarController: (UITabBarController *) TabBarController shouldSelectViewController: (UIViewController *) ViewController  
< P> Your code attempts to add the child view controller to view view controller that will not be displayed. Since the method returns "no" "ViewController" is not front and foremost important

  [ViewController addChildViewController: createOptionViewController]  

You currently need to add "createOptionViewController" as a childViewController to being displayed a sequence controller which is in this case you This like adding,

tabBarController.selectedViewController

  CreateOptionViewController * createOptionViewController = [[CreateOptionViewController alloc] init]; UIViewController * selectedVK = tabBarController.selectedViewController; [Chosen [edit] Videogram controller: MakeOvosh-Week Controller]; CreateOptionViewController.view.frame = viewController.view.bounds; [SelectedVC.view addSubview: createOptionViewController.view]; [SelectedVC.view LaosViewTrofront: MakeProvisionViewControllerView]; [CreateOptionViewController didMoveToParentViewController: viewController];  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -