美文网首页
iOS 特性小记

iOS 特性小记

作者: iVikings | 来源:发表于2018-09-18 10:25 被阅读17次
  • ATS 问题
    iOS 9 默认非 HTTPS 网络静止访问,需要在 info.plist 文件添加 NSAllowsArbitraryLoads 字段并设置成 YES。但是 iOS 102017年1月1日 起 Apple 不允许通过这个方法跳过 ATS,必须强制使用 HTTPS,若不这样做,上传 App Store 可能被拒。但是还可以通过设置
    NSExceptionDomains 字段来针对特定的域名开放 HTTP 通过审核。

  • Pushpem 文件生成
    终端执行以下命令,生成 ck.pem 文件
    openssl pkcs12 -in ck.p12 -out ck.pem -nodes

  • 测试 pem 证书文件是否有效
    a. 测试开发证书
    openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert apns_dev.pem
    b. 测试生产证书
    openssl s_client -connect gateway.push.apple.com:2195 -cert apns_inhouse.pem

  • Fix iOS 12.1 二级页面 pop 的时候 tabbar 跳动的 Bug
    [[UITabBar appearance] setTranslucent:NO];

相关文章

网友评论

      本文标题:iOS 特性小记

      本文链接:https://www.haomeiwen.com/subject/gapynftx.html