Skip to content

Instantly share code, notes, and snippets.

@jchudzynski
Last active December 30, 2015 07:09
Show Gist options
  • Save jchudzynski/7794260 to your computer and use it in GitHub Desktop.
Save jchudzynski/7794260 to your computer and use it in GitHub Desktop.
WebServicesHelper Example of usage in AppDelegate class
#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