2

How can I get storyboard ID programmatically (opened storyboard)? I want to get storyboard ID and than call different code for every storyboard. Something like if ID == myStoryboard then...

3
  • 2
    Hi, you have your code open on your screen, and you have the idea of what you're trying to do inside your head... but we don't. We have no idea. So your question only makes sense in the context of that information... it makes no sense to us without it... so can you please tell us all the relevant information so that we know what you're talking about? Please read this article: stackoverflow.com/help/how-to-ask and follow it? thanks :) Commented Jan 7, 2015 at 23:17
  • I set ID for all my storyboards, and when user opens storyboard number 5 with ID "5th_storyboard" how can I save that "5th_storyboard" (storyboard ID) to NSString *stroyboard_id? Commented Jan 7, 2015 at 23:19
  • Please read that article... then update your question to match Commented Jan 7, 2015 at 23:45

1 Answer 1

2

Solved it with NSString *restorationId = self.restorationIdentifier;

Sign up to request clarification or add additional context in comments.

1 Comment

When i write this code i get (null) what i am doing wrong?

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.