Monday, 25 May 2015

May 25 Lecture

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
  1. apply the transform
  2. apply the inverse transform at the end

No comments:

Post a Comment