我正在创建UIButton
一个UITableView
:
UIButton *aboutButton=[UIButton buttonWithType:UIButtonTypeRoundedRect];
[aboutButton setTitle:@"ABOUT" forState:UIControlStateNormal];
[aboutButton addTarget:self action:@selector(aboutButtonClicked) forControlEvents: UIControlEventTouchUpInside];
aboutButton.frame=CGRectMake(20, 375, 200, 35);
[tableView addSubView aboutButton];
按钮工作正常.........但按钮文本为蓝色且居中对齐。我想更改文本颜色和对齐方式 - 我该怎么做?