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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:40:32+00:00 2026-05-20T04:40:32+00:00

i have a problem in my app. in an tabbarcontroller i have a login

  • 0

i have a problem in my app. in an tabbarcontroller i have a login view where i can enter a website. if the login data is correct the view switches to another view. works fine.

now my problem is, when i switch the tab and enter the login view tag again and try to login again, the view does not load.

Whats here the problem? should i dismissmodalviewcontroller when the view is unload or something else???

thanks for help,
brush51

EDIT1:
hi robin, in my login view is an button which calls a webview whit this code:

ShopWebViewController *shopWVC = [[ShopWebViewController alloc]     initWithNibName:@"ShopWebViewController" bundle:nil];
    shopWVC = [[ShopWebViewController alloc] initWithNibName:@"ShopWebViewController" bundle:nil];
shopWVC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[logView  presentModalViewController:shopWVC animated:YES];  

And now when i exit the tabbar item where this logview is and enter it again, then the first view appears and the login/presentmodalviewcontroller doesnt work again.
cause of this i think that i may have to dismissmodalviewcontroller but dont know if this is right or not.

  • 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-20T04:40:33+00:00Added an answer on May 20, 2026 at 4:40 am

    When you hit the login button:

    ShopWebViewController *shopWVC = [[ShopWebViewController alloc] initWithNibName:@"ShopWebViewController" bundle:nil];
    shopWVC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    [self presentModalViewController:shopWVC animated:YES];
    [shopWVC release];
    

    Then in your view controller that has just been presented modally, somewhere in your code (perhaps when login is successful?) you need to dismiss it with

    [[self parentViewController] dismissModalViewControllerAnimated:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem - my app works fine on the simulator, but on
I have a problem running an app on iOS 5 which works fine on
I have a curious problem: My app is distributed through ClickOnce. I recently installed
I have problem in declaring the intents on my app. I have a form
I have a Problem in my App with the Dirty Memory Size and want
I have a problem regarding Android App. I have created an application that download
I have problem with Timeout, when I run a command through app, a timeout
I'm writing chat client/server app with c# and I have problem with threading. I
I'm writing an app in Visual Studio C++ and I have problem with assigning
I'm developing small FTP upload app. for mac (10.6 if it matters) Have problem

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.