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

TableViewCell 的 height 和里面的 Content View 的 height 在 SB 上显示出来不一致,肿么破?

  •  
  •   walkingway · Dec 30, 2014 · 4436 views
    This topic created in 4189 days ago, the information mentioned may be changed or developed.
    今天用layout布局,突然发现TableViewCell的height始终比他里面的Content View的height大1,比如TableViewCell的height默认的为44,Content View的height就为43...问了其他人,好像没这个问题?怎么办,重装了一遍Xcode,还是有这个问题。

    下面新建一个工程,拖一个TableViewController控件到SB中,然后什么都不做。

    这个是选中TableViewCell的,高度为44
    
    下面这个是选中Content View的,高度为43
    
    Supplement 1  ·  Dec 30, 2014
    那多出的一个是分割线,脑子缺氧了。。。结贴
    Supplement 2  ·  Mar 10, 2015
    今天改别人工程又出现这个问题,别人都是相等的,我和别人的xcode都不一致啊,求破
    3 replies    2015-03-10 13:19:34 +08:00
    walkingway
        2
    walkingway  
    OP
       Mar 10, 2015
    今天改别人工程又出现这个问题,别人都是相等的,我和别人的xcode都不一致啊,求破
    walkingway
        3
    walkingway  
    OP
       Mar 10, 2015
    @edward9941 为什么我的xcode和别人的不一致呢,求解,谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2499 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 06:50 · PVG 14:50 · LAX 23:50 · JFK 02:50
    ♥ Do have faith in what you're doing.