首页
注册
登录
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
广告
V2EX
›
iDev
TableViewCell 的 height 和里面的 Content View 的 height 在 SB 上显示出来不一致,肿么破?
walkingway
·
2014-12-30 17:55:36 +08:00
· 3691 次点击
这是一个创建于 3552 天前的主题,其中的信息可能已经有所发展或是发生改变。
今天用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都不一致啊,求破
height
content
view
3 条回复
•
2015-03-10 13:19:34 +08:00
1
edward9941
2014-12-30 23:41:33 +08:00 via iPhone
http://stackoverflow.com/questions/2411397/why-is-a-uitableviewcell-1px-taller-than-the-row-height
2
walkingway
OP
2015-03-10 12:53:44 +08:00
今天改别人工程又出现这个问题,别人都是相等的,我和别人的xcode都不一致啊,求破
3
walkingway
OP
2015-03-10 13:19:34 +08:00
@
edward9941
为什么我的xcode和别人的不一致呢,求解,谢谢
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
982 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 19:35
·
PVG 03:35
·
LAX 12:35
·
JFK 15:35
Developed with
CodeLauncher
♥ Do have faith in what you're doing.