Category to fix iOS 7 UINavigationItem spacing
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
UINavigationItem+iOS7Spacing.h
UINavigationItem+iOS7Spacing.m
UINavigationItem-iOS7Spacing.podspec
ios6-default.png
ios7-default.png
ios7-fixed.png

README.md

UINavigationItem-iOS7Spacing

Category to fix iOS 7 UINavigationItem spacing.

leftBarButtonItem position on iOS 5/6

iOS 6 default

leftBarButtonItem position on iOS 7

iOS 7 default

Fixed leftBarButtonItem position on iOS 7

iOS 7 fixed

You do not have to do anything else, except include this category in your *-Prefix.pch file:

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
    #import "UINavigationItem+iOS7Spacing.h"
#endif

Fully tested on iOS 6/7.