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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-22-2011, 11:39 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 86
NewSDK is on a distinguished road
Default if offline alert

hi all,
I follow the Parsing an XML file | iPhone Tutorial | iPhone iOS4 iPad SDK Development & Programming Blog to read xml data into table view , I just wonder how can I add if my pc is not on line pup up some alert
I test it on simulate
Thank !
NewSDK is offline   Reply With Quote
Old 05-22-2011, 11:42 PM   #2 (permalink)
Registered Member
 
ngaikwad's Avatar
 
Join Date: Feb 2011
Location: Mobile World
Posts: 450
ngaikwad is on a distinguished road
Default

Quote:
Originally Posted by NewSDK View Post
hi all,
I follow the Parsing an XML file | iPhone Tutorial | iPhone iOS4 iPad SDK Development & Programming Blog to read xml data into table view , I just wonder how can I add if my pc is not on line pup up some alert
I test it on simulate
Thank !

so you want to check that if you are online or not if not then pop up some alert?
__________________
Thank & Regard
NI3(Not Impossible 3)
ngaikwad is offline   Reply With Quote
Old 05-23-2011, 01:30 AM   #3 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 86
NewSDK is on a distinguished road
Default

Quote:
Originally Posted by ngaikwad View Post
so you want to check that if you are online or not if not then pop up some alert?
Yes!
NewSDK is offline   Reply With Quote
Old 05-23-2011, 01:37 AM   #4 (permalink)
Registered Member
 
ngaikwad's Avatar
 
Join Date: Feb 2011
Location: Mobile World
Posts: 450
ngaikwad is on a distinguished road
Default

Quote:
Originally Posted by NewSDK View Post
Yes!
then use this url

you want to use the network rechability class in your application.
__________________
Thank & Regard
NI3(Not Impossible 3)
ngaikwad is offline   Reply With Quote
Old 05-24-2011, 09:55 PM   #5 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 86
NewSDK is on a distinguished road
Default

Quote:
Originally Posted by ngaikwad View Post
then use this url

you want to use the network rechability class in your application.
Too complicate , looking for the sample one
NewSDK is offline   Reply With Quote
Old 05-24-2011, 11:45 PM   #6 (permalink)
Registered Member
 
ngaikwad's Avatar
 
Join Date: Feb 2011
Location: Mobile World
Posts: 450
ngaikwad is on a distinguished road
Default

you only require include reachability class to your application.......

the other things are not worry include whole class as present that was apple given.
__________________
Thank & Regard
NI3(Not Impossible 3)
ngaikwad is offline   Reply With Quote
Old 05-26-2011, 04:59 AM   #7 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 86
NewSDK is on a distinguished road
Default

Quote:
Originally Posted by ngaikwad View Post
you only require include reachability class to your application.......

the other things are not worry include whole class as present that was apple given.
I copy two of your reachability files ( from fbconnection-iphone-reachable-2-zip) and the systemConfiguration Framworks, but did not have Alert popup
if I did not connection to the Network
NewSDK is offline   Reply With Quote
Old 05-26-2011, 05:06 AM   #8 (permalink)
Registered Member
 
ngaikwad's Avatar
 
Join Date: Feb 2011
Location: Mobile World
Posts: 450
ngaikwad is on a distinguished road
Default

In *.h file
Code:
#import "Reachability.h"
@interface 
NetworkStatus internetconnection;
@property(nonatomic,Retain)NetworkStatus internetconnection;
In *.m file
Code:
self.internetconnection=[[Reachability sharedReachability]internetConnectionStatus];
if(internetconnection==NotReachable)
nslog(@"sorry");
__________________
Thank & Regard
NI3(Not Impossible 3)
ngaikwad is offline   Reply With Quote
Old 05-26-2011, 05:46 AM   #9 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

If including Reachability in your app is too complicated for you, you need to take a step back, get a good book on programming and read it.
baja_yu is offline   Reply With Quote
Old 05-26-2011, 05:48 AM   #10 (permalink)
Registered Member
 
ngaikwad's Avatar
 
Join Date: Feb 2011
Location: Mobile World
Posts: 450
ngaikwad is on a distinguished road
Default

Quote:
Originally Posted by baja_yu View Post
If including Reachability in your app is too complicated for you, you need to take a step back, get a good book on programming and read it.
why are you saying this ? is it any problem for doing by this?
__________________
Thank & Regard
NI3(Not Impossible 3)
ngaikwad is offline   Reply With Quote
Old 05-27-2011, 02:56 AM   #11 (permalink)
Registered Member
 
Join Date: Mar 2011
Posts: 86
NewSDK is on a distinguished road
Default

Quote:
Originally Posted by ngaikwad View Post
In *.h file
Code:
#import "Reachability.h"
@interface 
NetworkStatus internetconnection;
@property(nonatomic,Retain)NetworkStatus internetconnection;
In *.m file
Code:
self.internetconnection=[[Reachability sharedReachability]internetConnectionStatus];
if(internetconnection==NotReachable)
nslog(@"sorry");
Thank you!
ngaikward , I get it
NewSDK is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 359
7 members and 352 guests
doffing81, dre, iOS.Lover, jenniead38, Kirkout, PlutoPrime, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:08 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0