I can implement navigation bar and add left bar button, but before left button have space, please ask how to remove this space in ios 7.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Navigation bar disappears when typing in UISearchC
- Can not export audiofiles via “open in:” from Voic
You could use a system
.fixedSpace
UIBarButtonItem
.Here is a swift version producing the expected result (iOS 10+):
Another idea is to add a
UIButton
to theUINavigationController.view
directly.We can add customize left bar button of navigation bar, but before left button have space. I fix this issue as following,
Calling:
Add this class method to your Utilities class or any common class for your project,
Implementation:
Back image: back.png
use this it will work i have used it and works fine on iOS 7 also