我在用
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
委托根据方向类型更改视图的框架
即
if(UIInterfaceOrientationIsLandscape(interfaceOrientation))
{
self.view.frame=CGRectMake(0,0,500,300);
}
else
{
self.view.frame=CGRectMake(0,0,300,400);
}
Run Code Online (Sandbox Code Playgroud)
如何在iOS 6中处理相同的情况
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
Run Code Online (Sandbox Code Playgroud)
已在iOS6中弃用.
我正在使用以下委托来设置所有方向.
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationAllMask;
}
Run Code Online (Sandbox Code Playgroud)
但,
-(BOOL)shouldAutoRotate
{
return YES;
}
Run Code Online (Sandbox Code Playgroud)
没有被调用.如何处理这种情况?

我想制作一个像原生iphone照片库的iPhone应用程序....我发现了一个项目MWPhotoBrowser,现在我想使用这个项目的一些功能....但我不知道该怎么做... .i是iphone应用开发的新手..