[英]How do I prevent an iPhone background image from rotating when the device orientation changes?
我已將shouldAutorotateToInterfaceOrientation
設置為返回YES,但是我注意到,隨着iPhone旋轉,背景旋轉也為UIImageView
。 我如何固定背景使其不旋轉?
這似乎可以解決問題。 我把所有東西都固定在橫向模式下。
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.