가로 / 세로 화면 고정

1. 세로 고정
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
  return (interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation  ==UIInterfaceOrientationPortraitUpsideDown);
}

2. 가로 고정
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
  return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft|| interfaceOrientation  ==UIInterfaceOrientationLandscapeRight);
}

이 글을 공유하기


댓글(0)

Designed by CMSFactory.NET