ios - How to pass an object from a view to a view that's embedded in a Navigationcontroller that's embedded in a Tabbar controller that's a container view? -


Text after "div class =" itemprop = "text">

I want ViewB to pass an object from ViewA, but ViewB is a navigation controller that is in a tab bar controller Embedded in embedded. That's a view to see a container

I have tried this in prepareforsegue, but the value does not get passed for the destination

  - (zero) PrepareForSegue: (UIStoryboardSegue *) segue this: (id) this {if ([isEqualToString segue.identifier: @ "OpenProjectsSegue"]) {ContainerViewController * cvc = segue.destinationViewController; UITabBarController * tbc = cvc.tabBarController; UINavigationController * nav = tbc.view Administrator [0]; IVUU Controller * VC = (IVIUI Controller *) New desktop desktop controller; Vc.projectIndexToOpen = @ 1; Vc.testString = @ "Hola Peru"; }}   

I have also tried UITabBarController * TBC = cvc.childviewcontroller [0] , but found an empty array error message.

Please help. Thanks!

I have an answer that might work.

The ViewController is in. H Type at the top:

  extern UITabBarController * tbc;   

Then, at the top ViewController.m:

  UITabBarController * tbc;   

In addition, whatever files you are trying to use in UITabBarController, but this UITabBarController will make a global variable and you can use it in more than one file You should include class #.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -