开发者

Pushing up and pulling down a UIView

I have been playing around with UIView animations and for this questions i do not have any code yet, because I do not know yet:-) In saying that I also cannot find it anywhere on the net so I hope forums can help now.

I have one full screen UIView (we make it blue to separate it easy) and I have another UIView which fills up about half starting from the top. (make it green). I want to be abl开发者_如何学运维e to push that green UIView up with my finger and pull it back down again. The Green area has 2 positions it can be in and the event is triggered by "the pushing your finger into that direction event" - I gave it a name, because I cannot find any tutorials on how to do that. Does anyone have something that is useful to me with what I am asking??

I am still looking :-)

Cheers Jeff


Check out https://github.com/ehuynh/EHDragOutView. I developed it for another app and decided to pull out the code into another project . Might be a good place to start


Check out the documentation for UIGestureRecognizer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜