this week=tinder clone
push notifications, Facebook graph, geopoint, on may26
storyboards useful here
swift gesture recognizers
Selector(“wasDragged”)
for labels userInteractionEnabled is false by default. Have to set it to true
add func
func wasDragged() {
print(“dragged")
}
wasDragged(gesture:UIPanGestureRecognizer)
summary
Two things taught
First, UIPanGestureRecognizer
Second, transforms
CGAffineTransform
CGAffineTransformMakeRotate
then there are 3 things
- apply the transform
- apply the inverse transform at the end
No comments:
Post a Comment