iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
cpo007
V2EX  ›  iDev

向各位关于 iPhoneX 屏幕适配上的疑问

  •  
  •   cpo007 · Oct 13, 2017 · 5156 views
    This topic created in 3162 days ago, the information mentioned may be changed or developed.
    iPhoneX Bottom 的非安全距离是否一定不能填充?如果不能填充的话颜色怎么办?
    项目本身使用了自定义的 NavView,是直接加在每一个 UIViewController 上,所以在 StoryBoard 里最顶上的控件设定距离 Top offset 64 point,如何对 iPhoneX 的 84 进行适配,SizeClasses 不能单独对 iPhoneX 做特例适配。
    4 replies    2018-02-02 17:44:43 +08:00
    cpo007
        1
    cpo007  
    OP
       Oct 13, 2017
    找到问题了 我习惯性的约束是 距离 SuperView 64 Point,因为老的时候都是这样的, 改成 距离 Top layout Guide 44 Point 就好了.
    原来项目的前辈坑我,还告诉我不要 设置约束距离 Top Layout Guide.
    虽然测了其他屏幕,在 UI 上没出什么问题,但还是请教下各位,这样有没有可能出问题?
    Jameson1559
        2
    Jameson1559  
       Oct 13, 2017   ❤️ 1
    依稀记得如果是约束的话,目前有个新玩意儿叫 safeArea(n?)LayoutGuide 来着?
    可以在 StoryBoard 上面看见,默认的 View 都有这个布局安全区
    cpo007
        3
    cpo007  
    OP
       Oct 13, 2017
    @Jameson1559 请问下现在 iPhoneX 横屏播放视频有什么好的适配方式么。刘海是一个问题,还有个问题就是横屏后 bottom 的非安全距离怎么办?不填充的话就有很大的白边,填充掉的话视频播放器的下方功能条又不知道该如何适配
    JoneWang
        4
    JoneWang  
       Feb 2, 2018
    @cpo007 你这种就要跟设计沟通了,我们公司的某些视觉效果填充了底部、另外某些是底部和整个界面的底色相同。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   931 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:14 · PVG 06:14 · LAX 15:14 · JFK 18:14
    ♥ Do have faith in what you're doing.