Skip to content

Instantly share code, notes, and snippets.

View thandang's full-sized avatar

Than Dang thandang

View GitHub Profile
#import <Foundation/Foundation.h>
@interface Communicator : NSObject <NSStreamDelegate> {
@public
NSString *host;
int port;
}
- (void)setup;
@thandang
thandang / gist:7906692
Created December 11, 2013 08:11 — forked from eito/gist:7175555
-(void)locationManager:(CLLocationManager *)manager didFinishDeferredUpdatesWithError:(NSError *)error {
NSLog(@"%s -- error: %@", __PRETTY_FUNCTION__, error);
_deferring = NO;
}
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations {
NSLog(@"%s -- %d locations", __PRETTY_FUNCTION__, locations.count);
[self.locationUpdates addObject:locations];
[self.tableView reloadData];
}