2012年7月19日 星期四

View 預設橫向

目的:View顯示橫向

View設計-Orientation 改成 Landscape



ViewControll.m
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
  return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) ||
    (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}