Add textAlignment property

This commit is contained in:
Roman Efimov
2013-04-05 17:25:52 -05:00
parent 0a1797b28d
commit 28838aa9eb
3 changed files with 12 additions and 0 deletions

View File

@@ -103,6 +103,16 @@
[section2 addItem:[RETableViewItem itemWithTitle:@"Accessory 2" accessoryType:UITableViewCellAccessoryCheckmark actionBlock:^(RETableViewItem *item) {
[weakSelf.tableView deselectRowAtIndexPath:item.indexPath animated:YES];
}]];
RETableViewSection *section3 = [[RETableViewSection alloc] init];
[_manager addSection:section3];
RETableViewItem *buttonItem = [RETableViewItem itemWithTitle:@"Test button" accessoryType:UITableViewCellAccessoryNone actionBlock:^(RETableViewItem *item) {
[weakSelf.tableView deselectRowAtIndexPath:item.indexPath animated:YES];
NSLog(@"Button pressed");
}];
buttonItem.textAlignment = NSTextAlignmentCenter;
[section3 addItem:buttonItem];
}
@end