防止多次push导致的Can't add self as subview Crash
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like SafeNavigation in your projects. You can install it with the following command:
$ gem install cocoapodsTo integrate SafeNavigation into your Xcode project using CocoaPods, specify it in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'SafeNavigation'Then, run the following command:
$ pod install