Latest 2.0.0
License MIT
Platforms ios 8.0
Dependencies Reachability
Frameworks Foundation, UIKit


MXNetworing is a delightful networking framework for iOS platform.

Installation with CocoaPods

pod 'MXNetworking'


#import "MXNetworking.h"
  • Base URL
#pragma mark BASR URL
[MXNetworking setBaseURLString:@""];
  • Request Headers
#pragma mark REQUEST HEADERS
NSMutableDictionary *headers = [[NSMutableURLRequest standardHeaders] mutableCopy];
[headers setValue:@"MXNetworkingDemo/1.0 CFNetwork/758.1.6 Darwin/15.0.0" forKey:@"User-Agent"];
[headers setValue:@"*/*" forKey:@"Accept"];
[NSMutableURLRequest setStandardHeaders:headers];
  • Sample Request
NSString *version = @"1.0";
NSString *device = @"iphone6";
NSString *url = [MXNetworking urlByAppendingParameters:@{
                                             @"device": device,
                                             @"version": version
                                             } toURL:@"/exp_name.php"];

[MXNetworking getRequestByAppending:url forType:RequestTypeURL data:nil callback:^(ResponseStatus status, id responseObject, NSError *error) {
  // Main Thread:
  if (status == ResponseStatus200) {
    // code here...
  } else {
    // code here...

Trouble Shooting

  • ATS

Add this to your Info.plist file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

Latest podspec

    "name": "MXNetworking",
    "version": "2.0.0",
    "summary": "A delightful networking framework for iOS platform.",
    "description": "A stable version of MXNetworing, a delightful networking framework for iOS platform.",
    "homepage": "",
    "license": "MIT",
    "authors": "Elias Abel",
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "2.0.0"
    "source_files": "MXNetworking-OC/**/*.{h,m}",
    "frameworks": [
    "dependencies": {
        "Reachability": []

Pin It on Pinterest

Share This