Saturday, 15 August 2015

ios - View based delegation in storyboards and UITabbarController -



ios - View based delegation in storyboards and UITabbarController -

i know has been asked, can't figure out how create work app -- i'm sure i'm doing wrong.

i have 2 view controllers embedded within uitabbarviewcontoller, firstviewcontroller , secondviewcontroller. secondviewcontroller nil more few uitextfields managing hostname , port app connects to.

firstviewcontroller contains of code (which know isn't mvc oriented). i'm trying implement delegation secondviewcontroller firstviewcontroller (passing info between view controllers) seems delegate methods aren't beingness called. since based on storyboards, i'm not creating instance of secondviewcontroller , i'm not sure how set delegate. there way access instance of secondviewcontroller can set delegate?

milesper give thanks you!

my solution (in swift)

allow secondview = self.tabbarcontroller.viewcontrollers[1] secondviewcontroller secondview.delegate = self

ios storyboard uitabbarcontroller

No comments:

Post a Comment