【发布时间】:2015-01-20 13:43:29
【问题描述】:
当你转动我的设备屏幕时,我无法更新我的自定义视图。
我尝试过这样做:
override func viewDidLoad() {
super.viewDidLoad()
var myCustomView = Customview()
self.view.addsubview(myCustomView)
}
}
override func didRotateFromInterfaceOrientation(fromInterfaceOrientation: UIInterfaceOrientation) {
// Reload Data here
self.view.reloadData() // Incorrect
}
但是让我出错:
“UIView”方法没有名为 reloadData 的方法
【问题讨论】:
标签: ios swift reloaddata