iOS奇葩问题总结

来源:互联网 发布:推荐高中数学视频软件 编辑:程序博客网 时间:2024/06/05 04:07
1.iPhone7 iOS10.3.2  4G网络访问http接口(域名已加入白名单)服务端抛出自定义400error,但是该请求返回结果被拦截,状态码为200的时候不拦截

The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.

同等测试条件,在wifi条件下可以正常返回400error。(还好生产环境用的是https)


2.iPhone5s iOS8.1 自定义弹框设置约束 上面添加textfield输入文字,隐藏键盘,再次点击textfield,删除文字,弹框从新布局。(无奈又从新使用了frame)


3.iPhone7 Plus 部分页面支持横屏,横屏状态点击app进入不支持横屏页面,发现状态栏是横屏状态,布局是竖屏状态,解决方案:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    application.statusBarOrientation =UIInterfaceOrientationPortrait;

}

原创粉丝点击