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

如何正确处理 UILabel 的默认 padding

  •  
  •   xi_lin · Dec 3, 2015 · 4057 views
    This topic created in 3957 days ago, the information mentioned may be changed or developed.

    UILabel 总是会自动添加 padding ,而在对照 UI 图设置 layout 时间距都是字到字之间的距离。如何正确的处理这些 padding 呢?最低 iOS7 以上的话有通用方式可以清除 padding 不?

    2 replies  •  2015-12-04 10:49:08 +08:00
    z1049235238
        1
    z1049235238  
       Dec 4, 2015
    你可以设置内边距
    xi_lin
        2
    xi_lin  
    OP
       Dec 4, 2015
    @z1049235238 怎么设呢? layoutMargin?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2306 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:12 · PVG 12:12 · LAX 21:12 · JFK 00:12
    ♥ Do have faith in what you're doing.