Guest User

Untitled

a guest
Jun 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. NSMutableURLRequest *urlReq = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@?lat=%@&lng=%@&mph=%@&dir=%@&dt=%@&udid=%@&username=%@&pw=%@&notes=%@", myManager.website, myManager.lat, myManager.lon, myManager.speed, urlsafe_direction, urlsafe_timestamp, myManager.udid, urlsafe_username, urlsafe_password, urlsafe_note]]];
  2.  
  3.  
  4. [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];
  5. [[[NSURLConnection alloc] initWithRequest:urlReq delegate:self startImmediately:YES] autorelease];
  6. [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
Add Comment
Please, Sign In to add comment