Quote:
Originally Posted by himanshu
hi to all
i am just work on UITable i need to write some content on footer of UITable
please tell how i can write the content on it
|
Code:
- (void)viewDidLoad {
[super viewDidLoad];
UIButton *footer = [UIButton buttonWithType:UIButtonTypeCustom];
[footer setFrame:CGRectMake(0,0,320,20)];
[footer setFont:[UIFont systemFontOfSize:14.0]];
[footer setTitleColor:[UIColor colorWithRed:0.3 green:0.34 blue:0.42 alpha:1.0] forState:UIControlStateNormal];
[footer addTarget:self action:@selector(FunctionName) forControlEvents:UIControlEventTouchUpInside];
[footer setTitle:NSLocalizedString(@"Your text",nil) forState:UIControlStateNormal];
[self.tableView setTableFooterView:footer];
}