我的怎么不動
import UIKit
class donghuaViewController: UIViewController {
? ? @IBOutlet weak var blue: UIView!
? ? 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 viewDidDisappear(animated: Bool) {
? ? ? ? UIView.animateWithDuration(1, animations: {
? ? ? ? ? ? ? self.blue.center.x=self.view.bounds.width - self.blue.center.x;
? ? ? ? })
? ? }
我這個有錯嗎?怎么不動?
2016-03-30
視頻你都沒看清楚,控制起的運行過程 你得知道啊
2016-03-30
要寫在ViewDidload 函數(shù)里面, 你寫這個沒有調(diào)用 怎么會動呢!??!