V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ctaodream
V2EX  ›  问与答

不做任何配置 iOS 好像现在又能访问 http 开头的网络

  •  
  •   ctaodream · Sep 23, 2016 · 2093 views
    This topic created in 3503 days ago, the information mentioned may be changed or developed.
    2 replies    2016-09-26 16:38:17 +08:00
    Vernsu
        1
    Vernsu  
       Sep 23, 2016
    举例子
    ctaodream
        2
    ctaodream  
    OP
       Sep 26, 2016
    适配 iOS9 的时候 如果 APP 的服务端还没有开启 https ,通常我们需要在 info.plist 中加入
    NSAllowsArbitraryLoads = YES,不然的话访问 http 会报错 不能成功 ,但现在不配合这个 key ,或者
    NSAllowsArbitraryLoads = NO 也可以开始访问了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1342 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 23:48 · PVG 07:48 · LAX 16:48 · JFK 19:48
    ♥ Do have faith in what you're doing.