Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8980305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:03:29+00:00 2026-06-15T20:03:29+00:00

I’m trying to build an app (first one) that has webview. I have used

  • 0

I’m trying to build an app (first one) that has webview. I have used Storyboard and I implemented a WebView that works perfectly. But now it needed to make login using Facebook so I added a new view to Storyboard and I would like to load the root view based on login status. When I mark a view as initial view controller the app works and shows that view but, how could I change that just before show the view?.

I’ve tried this code and it doesn’t work:

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
UIViewController *vc =[storyboard instantiateViewControllerWithIdentifier:@"LoginViewController"];

// Set root view controller and make windows visible
self.window.rootViewController = vc;
[self.window makeKeyAndVisible];

I have this error: “2012-12-12 16:40:51.219 MoonBooster[15056:c07] Failed to instantiate the default view controller for UIMainStoryboardFile ‘MainStoryboard’ – perhaps the designated entry point is not set?”

I am not sure where is the identifier for a View take from and I’m thinking about to re-design the app just not to use Storyboards neither segues because I’m not using Nav or Tab View Controllers (we don’t need it) so I only can use modal segues.

Thank you for your help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:03:30+00:00Added an answer on June 15, 2026 at 8:03 pm

    The identifier for the view controller is set in the identity inspector — it’s under the Identity heading, and it’s called StoryboardID.

    As far as your app structure, I am seeing a lot of posters trying to do something similar to what you’re doing, and I don’t think it’s the right approach. Whatever main view you want at the start of the app (not including splash screens or login screens) should be the root view controller. If you want a login screen, then present that modally from the viewDidAppear method of your main view controller. If you don’t want to briefly see the main view while the login screen comes up, then set animated to NO. If the login is successful, then just dismiss the login controller, and you’re ready to go. If it fails, then inform the user of that with another screen or alert, and don’t dismiss the login controller.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I've got a string that has curly quotes in it. I'd like to replace
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a French site that I want to parse, but am running into
I have an array which has BIG numbers and small numbers in it. I
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.