美文网首页
移动端适配(实践1)

移动端适配(实践1)

作者: gaoxuerong | 来源:发表于2018-11-07 15:57 被阅读0次

    1.为了使页面调试更真实,启动Xcode模拟ios;

    1.模拟ios,终端输入xcrun instruments -s如果出现unable to find utility "instruments", not a developer tool or in PATH则输入sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/,然后再输入xcrun instruments -s结果:

    image.png
    如果模拟iphoneX可以输入xcrun instruments -w "iPhone X (11.2)",结果就会在屏幕上显示模拟器: WechatIMG56.png

    2.关闭模拟器cmd+w
    3.demo详见github

    相关文章

      网友评论

          本文标题:移动端适配(实践1)

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