Is there a way to make UIBarButtonItem
exclusive touch? At the moment you can select multiple at the same time and it keeps crashing my application.
相关问题
- Xcode debugger displays incorrect values for varia
- Image loads in simulator but not device?
- importing files from other directories in xcode
- XCode Server: Opening import file for module '
- create tableview inside tableviewcell using swift
相关文章
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Popover segue to static cell UITableView causes co
- “Storyboard.storyboard” could not be opened
- didBeginContact:(SKPhysicsContact *)contact not in
-
The file “
.app” couldn’t be opened becaus - How do I set compatible devices to only ARKit comp
Slightly easier method than subclassing the navbar but the same idea;
Put this just after you add your bar button items.
This does not work for UIBarButtonItem created using initWithTitle
In iOS 7 it wasn't working. I have used this method to try fix it.
Dredging up the past I apologise. I stumbled into this and hoped there was a better way than looping through subviews.
I found that the following makes the UIBarButtonItems exclusive:
iOS7 may have made exclusive touch inherited.
I managed this problem by subclassing UINavigationBar and overriding layoutSubviews method. Something like this: