摘要:
加速计是整个IOS屏幕旋转的基础,依赖加速计,设备才可以判断出当前的设备方向,IOS系统共定义了以下七种设备方向:typedefNS_ENUM(NSInteger, UIDeviceOrientation) { UIDeviceOrientationUnknown, UIDeviceOrientationPortrait, // Device oriented vertically, home button on the bottom UIDeviceOrientationPortraitUpsideDown,// Device oriented vertically, home... 阅读全文
posted @ 2013-08-14 20:59
编程小翁
阅读(1017)
评论(0)
推荐(0)
摘要:
iTouch,iPhone,iPad设置都是支持旋转的,如果我们的程序能够根据不同的方向做出不同的布局,体验会更好。 如何设置程序支持旋转呢,通常我们会在程序的info.plist中进行设置Supported interface orientations,添加我们程序要支持的方向,而且程序里面每个viewController也有方法 supportedInterfaceOrientations(6.0及以后) shouldAutorotateToInterfaceOrientation(6.0之前的系统) 通过viewController的这些方法,我们可以做到更小粒度的旋转控制,如程... 阅读全文
posted @ 2013-08-14 20:50
编程小翁
阅读(1362)
评论(0)
推荐(0)
摘要:
转自:http://blog.csdn.net/favormm/article/details/6664970如何用Facebook graphic api上传视频:http://developers.facebook.com/blog/post/532/Keychain保存数据封装:https://github.com/carlbrown/PDKeychainBindingsController对焦功能的实现:http://www.clingmarks.com/?p=612自定义圆角Switch按件:https://github.com/domesticcatsoftware/DCRound 阅读全文
posted @ 2013-08-14 14:00
编程小翁
阅读(876)
评论(0)
推荐(1)

浙公网安备 33010602011771号