开发者

Iphone SDK: How to center the TableCell text?

I've a TableCell that creates other cells on push.

cell.text  = @"New note";

Everything's fine except for the text in the cell - I want 开发者_Python百科it to be centered instead of alligned to the left.

How can i do that?


cell.textLabel.textAlignment = UITextAlignmentCenter;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜