title: Iphone, how can i avoid the watchdog killing my application for taking long time to launch?
body: <p>what is the proper way to notify the watchdog that i'm not in an endless loop and that i'm still loading  so don't kill my app?</p>
  
  <p>I'm receiving in my crashlogs 
  Exception Type:  00000020
  Exception Codes: 0x8badf00d
  and only when running the app from iphone independently from xcode </p>
  
  <p>the code taking time is :</p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
   Reachability* reachability = [Reachability sharedReachability];
   [reachability setHostName:@"www.apps2you.com"];    // set your host name here
   NetworkStatus remoteHostStatus = [reachability remoteHostStatus];
  
   if (remoteHostStatus == ReachableViaWiFiNetwork||remoteHostStatus == ReachableViaCarrierDataNetwork )
   {
    //getting the xml file and then getting the ad images online to display as splah ads.
   }
   else {
  //or launch the main interface if there's no connectivity.
    [self DisplayTabbar];
   }
  }
  </code></pre>
  
  <p>thanks.</p>