When I tap on the status bar, the UIScrollView
in my app does not respond and scroll to the top. Nothing happens. What could cause the UIScrollView
to ignore taps on the status bar?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- back button text does not change
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- 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
- How can I add media attachments to my push notific
Also check
scrollsToTop
in all container views if you have ones.This can occur when there are multiple instances of
UIScrollView
(or a subclass ofUIScrollView
, such asUITableView
) with thescrollsToTop
property set toYES
on the same view, such as when aUIScrollView
is added as a subview to aUIScrollView
. Make sure that thescrollsToTop
property of only one scroll view is set toYES
. The correctUIScrollView
should respond to tap events on the status bar after.Like Jack said, you can only have one subclass of
UIScrollView
(usually the table view) that has thescrollsToTop
property set toYES
. Likely you have others, typicallyUITextView
in your view. Just set theirscrollsToTop
property toNO
and you're good to go.