Update view size when device ori

2015-02-02  本文已影响21人  hoody
override func viewWillTransitionToSize(size: CGSize, withTransitionCoordinator coordinator: UIViewControllerTransitionCoordinator) {
    barView.frame = CGRect(x:0, y: 0, width: size.width, height: 30)
}

size is the container's size.

上一篇 下一篇

猜你喜欢

热点阅读