IOS Storyboards: Restoration ID just like Storyboard ID? -
i'm using ibook 'ios storyboards' steinberg transition using storyboards. on page 30, author's tutorial shows setting 'storyboard id' in identity inspector, value - of redscene. in book graphic shows first field under 'identify'
in xcode 4.6.1 don't see 'storyboard id', see field called 'restoration id', set value 'redscene'. use value in viewcontroller.m
- (ibaction)redbuttontapped:(id)sender { uiviewcontroller *redviewcontroller = [[self storyboard] instantiateviewcontrollerwithidentifier:@"redscene"]; [self presentviewcontroller:redviewcontroller animated:yes completion:nil]; }
however, when run app, error right on line refer 'redscene'. set exception breakpoint , see
(lldb)
i'm not sure @ in values displayed debugger on left side, have idea code doesn't know 'redscene' is.
i'm starting learn use apple documentation, i'm still uncertain how locate right areas read. tried searching on both 'restoration id' , 'storyboard id' there, don't results.
did put enough information post?
thanks ideas
laurel
i played around in storyboard bit, , think know problem! if select view on storyboard, let set restoration id. need select full view controller. can either selecting in left hierarchy on storyboard panel, clicking status bar on view controller, or black bottom bar underneath view.
Comments
Post a Comment