Written by
Amy
on
on
스탠포드 iOS 강의노트 L5
Lecture 5
Lecture 5: Gestures
Course Description Updated for iOS 10 and Swift. Tools and APIs required to build applications for the iPhone and iPad platforms using the iOS SDK. User interface design for mobile devices and unique user interactions using multi-touch technologies. Object-oriented design using model-view-controller paradigm, memory management, Swift programming language. Other topics include: object-oriented database API, animation, mobile device power management, multi-threading, networking and performance considerations.
- This course material is only available in the iTunes U app on iPhone or iPad.
- Developing iOS 10 Apps with Swift by Stanford
Gestures
- Gestures are recognized by instances of UIGestureRecognizer
- Adding a gesture recognizer to a UIView
UIPinchGestureRecognizer
var scale: CGFloat
// not read-only (can reset)var velocity: CGFloat { get }
// scale factor per second
UIRotationGestureRecognizer
var rotation: CGFloat
// not read-only (can reset); in radiansvar velocity: CGFloat { get }
// radians per second
UISwipeGestureRecognizer
var direction: UISwipeGestureRecoginzerDirection
// which swipe directions you wantvar numberOfTouchesRequired: Int
// finger count
UITapGestureRecognizer
var numberOfTapsRequired: Int
// single tap, double tap, etc. varnumberOfTouchesRequired: Int
// finger count