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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:37:35+00:00 2026-05-27T17:37:35+00:00

On my initial view (Tab bar controller that loads a navigation controller) I check

  • 0

On my initial view (Tab bar controller that loads a navigation controller) I check for internet connection. If the device has no active connection, I load a view that says Active Internet connection is required and has a retry button.

My problem is this:
Since the initial view is navigation based, and by using the following code, I load the warning view, there is a back button to the initial view. So by pressing the back button, one can go back to the initial view, which is empty because it requires connection to display its content. So loading a view does not seem to be a solution in my case. Also by clicking the retry button, the user is sent back to initial view which again loads the alerter view. which goes into a crazy loop, with recurring navigation bars.

here is my redirect code:

- (void)viewDidLoad {
    [super viewDidLoad];
    if ([Connection isConnected]) {NSLog(@"connected");}
    else {
        Alerter *controller = [self.storyboard instantiateViewControllerWithIdentifier:@"Alerter"];
        [self.navigationController pushViewController:controller animated:NO];

    }

Can anyone recommend a better way to handle this?

  • 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-27T17:37:35+00:00Added an answer on May 27, 2026 at 5:37 pm

    You could check for reachability before loading the navigation controller, and if there is no internet connection show a UIAlert view with your message.

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

Sidebar

Related Questions

Before iOS4, my app's initial view controller would check a passcode on/off settings variable
I am writing an app that has an initial view containing 2 buttons -
I have a UIActionSheet that pops up as soon as the initial view in
My app requires one set of tabs on the initial view, the last tab
I'm building an app that begins by loading a 'downloading' view controller which fetches
I am trying to write an iPhone app that has both a UITabBar controller
I have a UITabBar with 2 bar items. The initial orientation of the device
I have a view controller in my iphone app setup so that when I
I currently have an application that does the the following: S: Loads a view
I have overwritten the tab bar controller and tab bar item classes in my

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.