Add a shortcut menu gesture and view gesture to the view.
After iOS7, the shortcut menu will be slide from the bottom of the screen. I feel that this effect is good and I want to make a similar effect. This item is not highly technical, writing it once is a waste of time, so it is easy to use it as a classification. Demo address: Ghost (Note: animation uses facebook pop) Implementation Scheme: 1. added a void addpangesturewithenframe :( CGRect) endFrame to the view in classification mode; the endFrame is the position 2 where the frame will stop at the end, and then add a panGesutre and tapGesture to the view. The effect of the pan gesture is to move the view with the gesture, the tap function automatically pops up or hides the view. 3. Call [self. superview insertSubview: self. panMaskView belowSubview: self]; a tap gesture is also added to panMaskView to hide view 4. Events and view animations that notify external gestures to start or slide in delegate mode are displayed. Hidden events