Tuesday, 15 March 2011

ios - Handle orentation in iOS6 , iPhone? -



ios - Handle orentation in iOS6 , iPhone? -

which methods required in ios 6 handle orientation? have used given bellow, enough?

- (bool)shouldautorotate { homecoming yes; } - (nsuinteger)supportedinterfaceorientations { homecoming uiinterfaceorientationmasklandscape; } - (bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation { // homecoming yes supported orientations if (uiinterfaceorientationlandscapeleft == interfaceorientation || uiinterfaceorientationlandscaperight == interfaceorientation) { homecoming yes; } else { homecoming no; } }

i want create application work in both ios5 , ios6

before above steps , set supported orientations in targets->summary...

iphone ios ios6

No comments:

Post a Comment