How to hide the navigationBar on double tap and show on single tap on UIView without using the navigation controller? And also the animations when hiding and showing?
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In your selector:
In this implementation you have only double-touch event that will change status of bar to reverse.
Unfortunately there are no easy implementation for single and double touché gestures at one moment. Much more human behavior and easy for you – work only with event of double touch.
XCode project – example