ios - iPhone 使表格单元格中的文本居中

标签 ios uitableview cell center

大家好[我认为这是相当基本的,但找不到如何做到这一点!]

如何使文本在表​​格 View 的单元格中居中?

非常感谢!

最佳答案

它曾经是UITextAlignmentCenter

从 iOS6 开始,它是 NSTextAlignmentCenter。

看看这个 solution还有这个solution

关于ios - iPhone 使表格单元格中的文本居中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6148408/

相关文章:

excel - 如何遍历单元格列并写入另一列单元格

jQuery:如何仅根据表标题从表的列中选择值

ios - iPhone 照片应用程序如何如此快速流畅地加载这么多图像?

ios - 如何启用单点触摸来处理 UILongPressGestureRecognizer 和 UIPanGestureRecognizer?

ios - Coreplot 渲染问题?

html - iOS Safari : scrolling is broken inside position: fixed; elements

objective-c - 将 Storyboard 创建的 UITableview 的高度调整为其内容的高度

ios - UIPageViewController 与 TableView

iphone - uitableviewcell 上的附件勾选在某些情况下不显示

ios - 如何使单元格适应 TextView ?