开发者

for question about autorotation

开发者 https://www.devze.com 2022-12-10 17:44 出处:网络
my superview is UItabelview a开发者_C百科nd my subviews are UITabelview and UIDatePicker. for my subviews didn\'t able to call

my superview is UItabelview a开发者_C百科nd my subviews are UITabelview and UIDatePicker. for my subviews didn't able to call

  • (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration

why? bcoz this method calls when view rotates and at that time i want to set autoresizingmask method for that view so that when my subview rotates from Portrait to landscape mode it's view resizes automatically?


Make sure your subview responds to

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
}
0

精彩评论

暂无评论...
验证码 换一张
取 消