当前位置: 动力学知识库 > 问答 > 编程问答 >

objective c - How to Stop auto Rotation view controller in ios 8 by code

问题描述:

I'm using this method but not called-

- (BOOL)shouldAutorotateToInterfaceOrientation(UIInterfaceOrientation)interfaceOrientation

- (BOOL)shouldAutorotate

- (NSUInteger)supportedInterfaceOrientations

网友答案:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
  return NO;
}

this code will help you to disable rotation of entire view hierarchy..

分享给朋友:
您可能感兴趣的文章:
随机阅读: