Monthly Archives: 一月 2014

iOS7 更新适配

原文链接:http://www.raywenderlich.com/49316/how-to-update-your-app-for-ios-7

 

 

from:http://www.raywenderlich.com

这是一个非常好的学习、更新、了解iOS的网站,希望对大家在iOS开发过程中有所帮助!

iOS6.0后一些Rotations的变更

参考url:

点击链接打开

supportedInterfaceOrientationsForWindow:

Returns the default set of interface orientations to use for the view controllers in the specified window.

– (NSUInteger)supportedInterfaceOrientationsForWindow:(UIWindow *)window
Parameters
window

The window whose default interface orientations you want to retrieve.

Return Value

A bit mask specifying which orientations are supported. See “UIInterfaceOrientationMask” for valid bit-mask values. The value returned by this method must not be 0.

Discussion

This method returns the default interface orientations for the app. These orientations are used only for view controllers that do not specify their own. If your app delegate implements the application:supportedInterfaceOrientationsForWindow:method, the system does not call this method.

The default implementation of this method returns the app’s default set of supported interface orientations, as defined in the UISupportedInterfaceOrientations key of the Info.plist file. If the file does not contain that key, this method returns all interface orientations for the iPad idiom and returns all interface orientations except the portrait upside-down orientation for the iPhone idiom.

Availability
  • Available in iOS 6.0 and later.
Declared In

UIApplication.h

 

==========================================

参考URL:

点击链接打开