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 1, 2, and 3 differently based on their position. I'm thinking of making a outlet to the embedding view and then compare this view with view controllers in childViewControllers. But seems like a lot of busy work It would be great to be able to more easily lookup the view controller for a particular embed view. Any chance?
Doug Hill https://github.com/djfitz/SFFontFeatures <https://github.com/djfitz/SFFontFeatures> > On Apr 5, 2017, at 1:55 PM, Quincey Morris > <quinceymor...@rivergatesoftware.com> wrote: > > On Apr 5, 2017, at 13:42 , Doug Hill <cocoa...@breaqz.com > <mailto:cocoa...@breaqz.com>> 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. > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com