iPhone, How do I force one view into landscape mode? -


how force 1 view landscape mode graph.

i want click tab bar button make graph view appear when button clicked on view want push child screen need in portrait mode.

once click want return graph view in landscape.

use uiview's transform property rotate pi radians:

-(void)viewwillappear:(bool)animated { cgaffinetransform newtransform = cgaffinetransformmake(0.0,1.0,-1.0,0.0,0.0,0.0);          self.view.transform = newtransform;  } 

http://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.html%23//apple_ref/doc/uid/tp40006816-ch3-sw4


Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

php - Retrieving comment count from fb:comments widget (Facebook) -

drupal - using views argument in the view tpl.php file -