2014年3月29日 星期六

設定TableViewCell文字顯示

self.textLabel.text = @"你要的Title";
//顏色
self.textLabel.textColor = [UIColor BlackColor];
//字型 大小
UIFont *myFont = [ UIFont fontWithName: @"Arial" size: 16.0 ];
self.textLabel.font  = myFont;

//置中
self.textLabel.textAlignment = NSTextAlignmentCenter;

沒有留言:

張貼留言