any-touch | : wave : Touch gesture library | Frontend Framework library
kandi X-RAY | any-touch Summary
kandi X-RAY | any-touch Summary
:wave: 手势库, 按需1kb~5kb, 兼容PC / 移动端
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of any-touch
any-touch Key Features
any-touch Examples and Code Snippets
Community Discussions
Trending Discussions on any-touch
QUESTION
I am a total noob developing iOS applications and I'm working in one right now.
I have set up my storyboard with a HomeViewController
(main) and inside this, a container view, with another view controller embeded. This child view controller is outside the bounds of the view, and when a click a button in my HomeViewController it gets animated to the top of my app, showing this child with a cool animation. Everything is right.
In my child view controller I only have 3 buttons, and when they are displayed on the screen with this little animation, they are not usable. They don't trigger the action of the button being pressed nor they get "highlighted" with iOS style. Nothing happens.
I have been searching a lot about this, I have tried addChildViewController()
on parent, didMove(toParentViewController: UIViewController)
on child and I also have added it programmatically. When added programmatically it works OK but the view does not respect the animation, just being displayed in the screen without following the parent's container, which indeed moves with the animation.
What should I do next?
Thank you very much
Edit: My question does not seem to be a duplicate of UIView animations canceling any touch input
I'm using Spring library for the animations. Also, in that thread they are talking about user interaction being blocked while animation isn't finished. That is not my case. Animation is perfectly finished when trying the button interaction.
...ANSWER
Answered 2018-Mar-06 at 15:44From my experience, there are two issues which cause this behavior most often:
- Some of your container views have
userInteractionEnabled
set tofalse
, or - Your container view frame is small and you're attempting to tap a button outside the frame of the container which won't work. Consider it like a window to the button and there's an invisible wall blocking touches.
Both of these are best debugged using the Xcode Debug View Hierarchy, or you can also try the Reveal app and see what's going on there.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install any-touch
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page