How can I change the position of a UIBarButtonItem in a UINavigationBar? I would like my button to be about 5px higher than its normal position.
Objective-c – Change position of UIBarButtonItem in UINavigationBar
iphoneobjective cuibarbuttonitemuinavigationbar
Related Topic
- Ios – How to check iOS version
- Ios – Passing data between view controllers
- Ios – performSelector may cause a leak because its selector is unknown
- Ios – UINavigationBar – How to change the position of UIBarButtonItem
- Ios – How to show/hide a UIBarButtonItem
- Ios – How to hide UINavigationBar 1px bottom line
- Replacing characters with numbers in Haskell
Best Answer
This code creates a back button for UINavigationBar with image background and custom position. The trick is to create an intermediate view and modify its bounds.
Swift 5
Objective C