swift開發筆記14
阿新 • • 發佈:2017-09-06
disco sco class tor cover animate 例如 self swift開發
dotOne.transform = CGAffineTransform.init(scaleX: 0.01, y: 0.01)
// OptionSet,可以多選,例如[.repeat, .autoreverse]
UIView.animate(withDuration: 0.6, delay: 0.0, options: [.repeat, .autoreverse], animations: {
self.dotOne.transform = CGAffineTransform.identity
}, completion: nil)
enum vcName: String {
case chat = "ChatViewController"
case stories = "StoriesViewController"
case discover = "DiscoverViewController"
}
let chatVC = UIViewController.init(nibName: vcName.chat.rawValue, bundle: nil)
childVC.didMove(toParentViewController: parentViewController)
swift開發筆記14