Latest 0.1.1
Homepage http://github.com/rahulsend89/urlHandler
License MIT
Platforms ios 7.0, requires ARC
Dependencies Reachability
Authors

no README.md available

Latest podspec

{
    "name": "urlHandler",
    "version": "0.1.1",
    "summary": "Easy way to work with NSURL in Objective-C.",
    "description": "                       #urlHandlern==========nnEasy way to work with NSURL in Objective-C nnHow to use :nninitCache in AppDelegate didFinishLaunchingWithOptions n```objective-cn[[UrlHandler sharedInstance] initCache];n```nnnBasic URL request .n```objective-cn[[UrlHandler sharedInstance] basicURL:@"http://google.com" :^(NSError *error, id returnObject) {n    if(error != (NSError*)[NSNull null] && ![returnObject isEqualToString:@"notReachable"]){n        NSLog(@"returnObject : %@",returnObject);n    }else{n        NSLog(@"error : %@",error);n    }n}];n```nnnDownload File with progress .n```objective-cn[[UrlHandler sharedInstance] downloadFileWithURL:@"http://www.socialtalent.co/wp-content/uploads/blog-content/so-logo.png" withName:@"logo.png" progressBlock:^(float pre) {n    NSLog(@"progress :%f",pre);n} completionBlock:^(NSError *error, id returnObject) {n    NSLog(@"error : %@:%@",error,returnObject);n}];n```nnMultiple File Downloader with progress .n```objective-cnNSArray *array = @[@"http://wfiles.brothersoft.com/a/awesome-ice-block_178817-1920x1080.jpg",n                   @"http://www.hitswallpapers.com/wp-content/uploads/2014/07/awesome-city-wallpapers-1920x1080-2.jpg",n                   @"http://awesomewallpaper.files.wordpress.com/2011/09/splendorous1920x1080.jpg",n                   ];n[[UrlHandler sharedInstance] downloadListOfListWithArray:array progressBlock:^(float pre, int current) {n    NSLog(@"progress :%f:%d",pre,current);n} completionBlock:^(NSError *error, id returnObject, int currentObj) {n    NSLog(@"error : %@:%@:%d",error,returnObject,currentObj);n}];n```nnForm Request .n```objective-cnNSDictionary *dic = @{n    @"name":@"awesome",n    @"email":@"[email protected]"n};n[[UrlHandler sharedInstance] basicFormURL:@"http://10.0.1.5/testPost.php" :@"POST" :dic :^(NSError *error, id returnObject) {n    if(error != (NSError*)[NSNull null] && ![returnObject isEqualToString:@"notReachable"]){n        NSLog(@"returnObject : %@",returnObject);n    }else{n        NSLog(@"error : %@",error);n    }n}];n```nForm Request with File uploading.n```objective-cnNSData *imageData = UIImageJPEGRepresentation([UIImage imageNamed:@"img.jpg"], 90);nNSDictionary *fileInfo = @{n    @"data":imageData,n    @"contentType":@"image/jpeg",n    @"fileName":@"image.jpeg",n    @"key":@"userfile"n};ndic = @{n                      @"comment":@"this is a comment",n                      @"region":@"[email protected]",n                      @"pincode":@"100000",n                      @"name":@"Rahul Emosewa",n                      @"phone":@"9821829923",n                      @"file":fileInfon                      };n[[UrlHandler sharedInstance] multipleFormUrl:@"http://10.0.1.5/Afrimart_backEnd/post.php" :@"POST" postDictionary:dic progressBlock:^(float pre) {n    NSLog(@"progress :%f",pre);n} completionBlock:^(NSError *error, id returnObject) {n    NSLog(@"error : %@:%@",error,returnObject);n}];n```nn",
    "homepage": "http://github.com/rahulsend89/urlHandler",
    "license": "MIT",
    "authors": {
        "Rahul Malik": "[email protected]"
    },
    "source": {
        "git": "https://github.com/rahulsend89/urlHandler.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "urlHandler/UrlHandler.{h,m}",
    "dependencies": {
        "Reachability": []
    }
}

Pin It on Pinterest

Share This