Re: Reference to embedded view controller in IB?

2017-04-17 Thread Alex Zavatone
I wrote some stuff to find your view controller within the storyboard and/or within the view hierarchy based on the class name of the view controller. Some of it is a little new some of it is a little old. One trick (on iOS) is that you will need to check if your root controller is a nav

Re: Reference to embedded view controller in IB?

2017-04-07 Thread Doug Hill
OK, this looks like the official solution. I see that on iOS my prepareForSegue method is being called for the embed segues, and this is called before viewDidLoad. Excellent! Doug Hill https://github.com/djfitz/SFFontFeatures > On Apr 6, 2017, at

Re: Reference to embedded view controller in IB?

2017-04-06 Thread Quincey Morris
On Apr 6, 2017, at 14:55 , Kyle Sluder wrote: > > It is not called for all segues, but it should be called for embed > segues created by dragging out a Container View from the Object Library. I was wondering about this, like Jean-Daniel was, so I just tried it in an existing

Re: Reference to embedded view controller in IB?

2017-04-06 Thread Kyle Sluder
On Thu, Apr 6, 2017, at 04:25 PM, Jean-Daniel wrote: > > > Le 6 avr. 2017 à 22:35, Kyle Sluder a écrit : > > > > On Wed, Apr 5, 2017, at 03:42 PM, Doug Hill wrote: > >> I have a view controller that I instantiate in my Storyboard. This view > >> controller has an embedding

Re: Reference to embedded view controller in IB?

2017-04-06 Thread Jean-Daniel
> Le 6 avr. 2017 à 22:35, Kyle Sluder a écrit : > > On Wed, Apr 5, 2017, at 03:42 PM, Doug Hill wrote: >> I have a view controller that I instantiate in my Storyboard. This view >> controller has an embedding view inside it's view, and this embedding >> view has another view

Re: Reference to embedded view controller in IB?

2017-04-06 Thread Kyle Sluder
On Wed, Apr 5, 2017, at 03:42 PM, Doug Hill wrote: > I have a view controller that I instantiate in my Storyboard. This view > controller has an embedding view inside it's view, and this embedding > view has another view controller in it. > > I need to configure this embedded view controller but

Re: Reference to embedded view controller in IB?

2017-04-05 Thread Doug Hill
Alright, thanks for the follow-up. It looks there's nothing built into UIKit for doing this lookup or a way to store a reference in IB, so I'll try one of these solutions. Doug Hill https://github.com/djfitz/SFFontFeatures > On Apr 5, 2017, at 2:30

Re: Reference to embedded view controller in IB?

2017-04-05 Thread Quincey Morris
On Apr 5, 2017, at 14:06 , Doug Hill wrote: > > Let's say, views are in position 1, 2, and 3 and I want to configure 1, 2, > and 3 differently based on their position. The simplest way would be to set a different tag on each view, and distinguish between them using

Re: Reference to embedded view controller in IB?

2017-04-05 Thread Doug Hill
Thanks for the follow up. I saw this but I happen to have multiple embedded view controllers. While it's possible to do a search, it's more difficult because there are multiple embed view with the same view controller class. Let's say, views are in position 1, 2, and 3 and I want to configure

Re: Reference to embedded view controller in IB?

2017-04-05 Thread Quincey Morris
On Apr 5, 2017, at 13:42 , Doug Hill wrote: > > Can this be done? Are there other ways to get a reference to the embedded > view controller at runtime? I believe you’ll find the embedded view controller in the root view controller’s “childViewControllers” array property.

Reference to embedded view controller in IB?

2017-04-05 Thread Doug Hill
I have a view controller that I instantiate in my Storyboard. This view controller has an embedding view inside it's view, and this embedding view has another view controller in it. I need to configure this embedded view controller but I don't know a way to make it available to my container VC