开发者

Iphone SDK: How to center the TableCell text?

开发者 https://www.devze.com 2023-03-19 10:30 出处:网络
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 t

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

精彩评论

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