I have a preference that, when set, forces my application to perform some synchronization on startup.
Can I use IB to display a different initial view based on this setting?
Is there a standard way to enable this behavior?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you have a property on your app delegate that is set during your synchronization, in the initial view controller’s initWithNibNamed: method check the value synced by the app delegate and load the appropriate nib by calling
[super initWithNibNamed:@"thisNibInsteadOfThatNib"];EDIT: Show code to launch a different view depending on some condition at launch
EDIT 2:
Make use of
NSClassFromSting()and save the name of the firstViewController to load in the preferences.