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
cedared
V2EX  ›  iDev

一个很奇怪的问题, Label 布局错位。

  •  
  •   cedared · Feb 17, 2016 · 3910 views
    This topic created in 3881 days ago, the information mentioned may be changed or developed.
    我用 UIView 做了一个分类的 View 里边有 10 个 Label 。布局是直接用 label 的 frame 初始化方法,每个 label 的宽度为屏幕的 1/5 ,第一个 label 的 x 为 0 ,之后每个 label 的 x 加一个 label 宽度。在本机调试的时候是正常显示的,在 appstore 审核的时候我猜想应该也是正常显示的(不然苹果不会给通过啊)如下图


    但是在通过审核上线之后布局就错位了,如下图。



    完全想不通问题出在哪里,希望老司机给予帮助
    代码如下:
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2485 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 13:20 · PVG 21:20 · LAX 06:20 · JFK 09:20
    ♥ Do have faith in what you're doing.