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 8440405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:17:23+00:00 2026-06-10T08:17:23+00:00

Okay, so far I’ve two view controllers in my storyboard. One with login elements

  • 0

Okay, so far I’ve two view controllers in my storyboard. One with “login” elements and other as “User’s home” sort of thing. I am intending to do the following : When user clicks on login, there’s a bit of processing and then it should show to user’s home screen..

When I do it via storyboard, i mean = control drag “login” button to user’s home view it works fine. But I cant use that as I’ve to process the login data. It also shows some animation meanwhile. So, I’ve to do this shift programmatically. I wrote following code in the login button’s IBAction ::

HomeViewController *homeView = [[HomeViewController alloc] init];

[self presentViewController:homeView animated:YES completion:NULL] ;

Now, this takes user to the intended view. However, the elements in the homeview (say a label, navigation bar are not being shown. And thats what my worry is.
(In theory, I can build entire view programatically but i think thats not the proper way of doing this, is it ? I want to make use of storyboard functionality in full i.e. design maximum UI in storyboard and use them from the backend how you want them to work.)

How do I do it ?

Cheers.

PS : I intend to add few more view controllers so at the moment i didn’t think of navigation controller. not sure, if i should use it.

  • 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-10T08:17:24+00:00Added an answer on June 10, 2026 at 8:17 am

    Using storyboards you should be using:

    UIViewController *homeView = [self.storyboard instantiateViewControllerWithIdentifier:@"someID"];
    [self presentViewController:homeView animated:YES completion:NULL] ;
    

    Then set the ID to the view controller in storyboard like so:

    enter image description here

    Additionally, if you wish to there is absolutely nothing wrong with designing your UI entirely in code. Personally I prefer it. It gives you much more flexibility than interface builder.

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

Sidebar

Related Questions

Okay, so far I can select two tables using mysql but I cant select
Okay - I have a dilemma. So far my script converts page titles into
Okay, I am going to go through ALL my steps thus far just so
okay, i'm setting up a multi-user chat system. i have a messages table, that
Okay, I have reached a sort of an impasse. In my open source project,
Okay this is what I have so far. I have a form that needs
Okay, so far this works in Chrome, but not Firefox. It's pretty simple so
Okay, I hate facebook now. I've been fighting with this far too long. I'm
Okay, so far, I have been taking computer science courses in my high school
Okay so I have been developing a system so far in main memory that

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.