ios - How to configure embedded view controllers using iOS6 style embed seque -
i trying use embed segue in storyboard embed couple of collectionviewcontrollers in main view.
however, when trying set embedded views using prepareforsegue (as familiar doing modal type seques), prepareforseque called, segue.identifier returns null.
- (void)prepareforsegue:(uistoryboardsegue *)segue sender:(id)sender { nslog(@"segue.identifier %@", segue.identifier); }
segue.identifier (null)
i've been searching information on using embed segue in storyboards, have been unable find much.
is prepareforsegue not correct way access embedded view controllers? if not, how set embedded controllers (such set initial state , set delegate)?
if you've correctly set identifier segue, segue.identifier shouldn't null. using prepareforsegue:sender: 1 of ways access embedded controllers. other way use self.childviewcontrollers controller view has container views in -- give array of child view controllers.
Comments
Post a Comment