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

  • Home
  • SEARCH
  • 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 4045136
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:22:56+00:00 2026-05-20T13:22:56+00:00

I have a Login view in my iPhone app. If the user successfully authenticates

  • 0

I have a Login view in my iPhone app. If the user successfully authenticates I want to move him from LoginViewController screen to MyViewController screen. Below is my code,

if([serverOutput isEqualToString:@"Yes"]){
        NSLog(@"Authentication correct");

        if(self.myviewController==nil)
        {
            MyViewController *myController=
            [[MyViewController alloc]initWithNibName:@"MyView" bundle:[NSBundle mainBundle]];
            self.myviewController=myController;
            [myController release];
        }
}

But somehow the app doesnt do anything when i click on the Login button even though the authentication is correct. As i am new to iphone app development can anybody please help me out with the code..

  • 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-05-20T13:22:57+00:00Added an answer on May 20, 2026 at 1:22 pm

    To transition between views you’re going to want to read up on UINavigationControllers. A UINavigationController is an object that manages a hierarchy of views. The UINavigationController is like a road map for going from one view to another in your applications flow and it achieves it’s most basic features by calling the methods pushViewController:animated (to transition to a new view controller) and popViewController:animated (to transition back to the preview view).

    In the case of your project you’d want to do the following.

    • Allocate and initialize a UINavigationController (in your application delegate if you plan on the login screen to be where your program starts) and assign it’s root view to your login view controller.
    • If the user has been successfully authenticated, you would then construct an instance of the UIViewController you want to transition to and then instruct the UINavigationController to push this next view controller onto the navigation stack by calling pushViewController:animated:
    • At this point lets say you want the user to log out and return to the login screen once again, you can call this method popViewController:animated.

    Here’s the class reference for UINavigationController to get you started. It’s got some great pictures explaining it’s structure.

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

Sidebar

Related Questions

I have an IPhone application that I want to attempt login and do some
I have a Login button that I want to be disabled until 3 text
I have a login page where I authenticate the user. When the authentication pass,
I have a login screen that I force to be ssl, so like this:
I have a rails app with a mobile view using jqtouch. If the application
I am building a iPhone web based app for our execs to view sales
Sorry but I found no clear answer on that. I have an iphone app
I'm writing an iPhone program that has a login view controller that allows the
I'm writing an app that will allow iPhone users to login to their accounts.
I have to login into a https web page and download a file using

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.