Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

Thread: Check for Wifi?
View Single Post
Old 11-06-2008, 03:13 PM   #6 (permalink)
PhoneyDeveloper
New Member
 
Join Date: Sep 2008
Posts: 1,431
Default

After adding the code that I showed the following is what I do in my view controller's viewDidLoad:


Code:
	// Check if the network is reachable and turn off the controls if not
	if (! [NetReachability networkIsReachable:NO])
	{
		mStatusLabel.text = NSLocalizedString(@"WiFi is not available", @"no wifi status text in Pull/Push Connectivity");
		mStatusLabel.textColor = [UIColor redColor];
		mGetFileButton.enabled = NO;
		mNetworkIsReachable = NO;
	}
PhoneyDeveloper is offline   Reply With Quote
 

» Advertisements
» Online Users: 730
21 members and 709 guests
Briger, cbrauchli, chits12345, chrisfromnz, Domele, gc2010, henrybatty, ilmman, JamesCahall, kaileymo123, Lanka001, Leoknico, mikeporras, Moe2392, MozyMac, Punkjumper, rrlemoine, shoppingcenter, supasounds, xlc
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,813
Threads: 89,206
Posts: 380,630
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Leoknico
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:45 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.