我的有錯誤,請老師和大神解答????
class RotationViewController: UIViewController {
? ? @IBOutlet weak var wheel: UIImageView!
? ? override func viewDidLoad() {
? ? ? ? super.viewDidLoad()
? ? ? ? // Do any additional setup after loading the view.
? ? }
? ? override func didReceiveMemoryWarning() {
? ? ? ? super.didReceiveMemoryWarning()
? ? ? ? // Dispose of any resources that can be recreated.
? ? }
?? ?
? ? override func viewDidAppear(animated: Bool) {
? ? ? ? super.viewDidAppear(animated)
? ? ? ? UIView.animateWithDuration(1, animations: {
? ? ? ? self.wheel.transform = CGAffineTransformMakeRotation(<#CGFloat#>(M_PI))
? ? ? ? })
? ? }
?? ?
}
求解答???謝謝了。
2015-08-16
可以先下載Git上的完整版那來運行下 然后比較代碼 查找錯誤點