首先确认你的工程级别 支持横屏
然后在你的UIViewController中:
override func shouldAutorotate() -> Bool {
return false
}
override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.LandscapeLe[......]
首先确认你的工程级别 支持横屏
然后在你的UIViewController中:
override func shouldAutorotate() -> Bool {
return false
}
override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.LandscapeLe[......]
有2点要注意的:
代码如下:
let scrollView = UIScrollView()
let contentView = UIView()
contentView.backgroundColor = UIColor.greenColor()
let view1 = UIV[......]
Video
崩溃后提示dyld: Library not loaded: @rpath/libswift_stdlib_core.dylib
除了参考:http://stackoverflow.com/questions/24002836/dyld-library-not-loaded-rpath-libswift-stdlib-core-dylib/26383255#26383255
这里面的方案外,检查下build参数,去掉这一行:
-Wl,-sectcreate,__RESTRICT,_[......]