This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma mark * UIView methods | |
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil | |
{ | |
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; | |
if (self) { | |
// Synchronous networking on the main thread is seriously bad - only doing this for | |
// demo purposes | |
NSURL* url = [NSURL URLWithString:@"https://your-domain.azurewebsites.net/capability"]; | |
NSURLResponse* response = nil; |