开发者

Is there a way to rotate the view after it has loaded completely?

I am looking for a way to rotate a view after the view has been load when it has been present as a modal view.

I envoke my view by calling:

[self presentModalViewController:cntrol animated:YES];

And in that modal view controller i am rotating via:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient开发者_C百科ation {
    return  (orientation == UIInterfaceOrientationLandscapeRight);
}


You can rotate a view using a transform.

CGAffineTransform transform = CGAffineTransformMakeRotation(3.14159/2);
self.view.transform = transform;
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜