Latest 2.1.1
Homepage https://github.com/devxoul/UINavigationItem-Margin
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

Build Status
CocoaPods

Margin for UINavigationItem.

Setting Margins

Just set leftMargin and rightMargin of your UINavigationItem.

navigationItem.leftMargin = 0;
navigationItem.rightMargin = 0;

zero

Wow, margin has disappeared.

Even you can do this:

navigationItem.leftMargin = 50;
navigationItem.rightMargin = 20;

ugly

Looks ugly but works.

System Margins

Want to restore margins? Use [UINavigationItem systemMargin].

navigationItem.leftMargin = [UINavigationItem systemMargin]; // 16 on iOS 7+
navigationItem.rightMargin = [UINavigationItem systemMargin];

system

Installation

I recommend you to use CocoaPods.

Podfile

pod 'UINavigationItem+Margin'

License

UINavigationItem+Margin is under MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "UINavigationItem+Margin",
    "version": "2.1.1",
    "summary": "Margin for UINavigationItem.",
    "homepage": "https://github.com/devxoul/UINavigationItem-Margin",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Suyeol Jeon": "[email protected]"
    },
    "source": {
        "git": "https://github.com/devxoul/UINavigationItem-Margin.git",
        "tag": "2.1.1"
    },
    "source_files": "UINavigationItem+Margin/*.{h,m}",
    "frameworks": "UIKit",
    "requires_arc": true,
    "platforms": {
        "ios": "7.0"
    }
}

Pin It on Pinterest

Share This