小编Nit*_*itk的帖子

从谷歌驱动器禁用大文件通知

在下载zip文件时(我假设超过25MB)我收到以下通知,

Sorry, we are unable to scan this file for viruses.

The file exceeds the maximum size that we scan. Download anyway
Run Code Online (Sandbox Code Playgroud)

在浏览器中.有任何选项可以禁用它,这样我就可以直接下载任何大文件,而不必接收中断等消息.

想知道谷歌硬盘中是否有任何设置,以便我可以禁用该代理消息.

download google-drive-api

14
推荐指数
3
解决办法
4万
查看次数

将视图从横向转换为纵向?

我已经开发了横向模式的应用程序,现在客户端要求在横向和纵向模式下构建.

如何将横向视图转换为纵向视图?

现在我将此代码用于Landscape View:

 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{

 return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight);

 }
Run Code Online (Sandbox Code Playgroud)

请帮我....

预付谢谢:)

cocoa-touch objective-c uiinterfaceorientation ios

6
推荐指数
1
解决办法
347
查看次数

为纵向和横向模式获得相同的屏幕宽度和高度

我用这段代码来获取屏幕宽度和屏幕高度,

    float scaleFactor = [[UIScreen mainScreen] scale];
    CGRect screen = [[UIScreen mainScreen] bounds];
    CGFloat widthInPixel = screen.size.width * scaleFactor;
    CGFloat heightInPixel = screen.size.height * scaleFactor;

    NSLog(@"%f",widthInPixel);
    NSLog(@"%f",heightInPixel);
Run Code Online (Sandbox Code Playgroud)

    CGRect screenBounds = [[UIScreen mainScreen] bounds];
    NSLog(@"screenBounds W %f",screenBounds.size.width);
    NSLog(@"screenBounds H %f",screenBounds.size.height);
Run Code Online (Sandbox Code Playgroud)

但它在纵向和横向模式下显示相同的宽度= 768和高度= 1024.

objective-c orientation uiinterfaceorientation ios

6
推荐指数
1
解决办法
5481
查看次数

通过OTA安装ipa时"无法连接到服务器"

我已经安装了配置文件并成功创建了ipa.ipa将在Dropbox中安装没有任何问题,但同样的ipa将在通过OTA安装时出错.

我附上了错误的屏幕截图.

我该如何解决这个问题.任何帮助,将不胜感激.

在此输入图像描述

谢谢.

xcode ota ios7 xcode6

5
推荐指数
1
解决办法
3143
查看次数