I’m developing an iPhone application with latest SDK and XCode.
I’m using storyboarding and I don’t know how to open a view when user runs the app at first time.
I will check if there is user preferences saved, and, if there isn’t, I will open settings view:
prefs = [NSUserDefaults standardUserDefaults];
if ([prefs stringForKey:APP_LANGUAGE_KEY] == nil)
{
// Open SettingsViewController;
}
else
{
// Continue usually.
}
This is my storyboard:

How can I do it?
You almost got it right. Just make sure you set a key at the first launch.