V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
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 · 2014-12-30 17:55:36 +08:00 · 3616 次点击
    这是一个创建于 3403 天前的主题,其中的信息可能已经有所发展或是发生改变。
    今天用layout布局,突然发现TableViewCell的height始终比他里面的Content View的height大1,比如TableViewCell的height默认的为44,Content View的height就为43...问了其他人,好像没这个问题?怎么办,重装了一遍Xcode,还是有这个问题。

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

    这个是选中TableViewCell的,高度为44
    
    下面这个是选中Content View的,高度为43
    
    第 1 条附言  ·  2014-12-30 19:40:44 +08:00
    那多出的一个是分割线,脑子缺氧了。。。结贴
    第 2 条附言  ·  2015-03-10 12:53:30 +08:00
    今天改别人工程又出现这个问题,别人都是相等的,我和别人的xcode都不一致啊,求破
    3 条回复    2015-03-10 13:19:34 +08:00
    walkingway
        2
    walkingway  
    OP
       2015-03-10 12:53:44 +08:00
    今天改别人工程又出现这个问题,别人都是相等的,我和别人的xcode都不一致啊,求破
    walkingway
        3
    walkingway  
    OP
       2015-03-10 13:19:34 +08:00
    @edward9941 为什么我的xcode和别人的不一致呢,求解,谢谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1055 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:24 · PVG 03:24 · LAX 12:24 · JFK 15:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.