I have pickerview
in my view controller. I am displaying it by adding into subview and then changing frame of subview. When my pickerview
displayed I have one button behind it. When I click on those area after dispalying pickerview
still that button action is called. How to set pickerview
proper?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
U subclass the PickerView like below will help u to fix this issue.
implementation file
Here i override the
hitTest
to makeUIPickerView
response for the user interaction. This is the way how apple make main picker view transparent for user touch by return nil when user directly touch on the main view instead of picker content.