Last active
December 30, 2015 07:09
-
-
Save jchudzynski/7794260 to your computer and use it in GitHub Desktop.
WebServicesHelper Example of usage in AppDelegate class
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
#import "AppDelegate.h" | |
#import "WebServicesHelper.h" | |
@interface AppDelegate() | |
@property (nonatomic,strong)WebServicesHelper * helper; | |
@end | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
// Override point for customization after application launch. | |
self.window.backgroundColor = [UIColor whiteColor]; | |
[self.window makeKeyAndVisible]; | |
_helper = [[WebServicesHelper alloc]init]; | |
[_helper getDataWithCompletionBlock:^(NSData *data) { | |
} andErrorBlock:^(NSError * error) { | |
}]; | |
return YES;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment