Hi
I want to add a view to footer of the tableview which is embedded with UITableViewController. I Have added a view like below:
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{
speedDialView = [[UIView alloc] init];
}
I have added button successfully, but i could not add any other views beside that button.
Can any one help me out?
Thanks in advance..
I want to add a view to footer of the tableview which is embedded with UITableViewController. I Have added a view like below:
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{
speedDialView = [[UIView alloc] init];
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setFrame:CGRectMake(10, 3, 65, 50)];
[button setBackgroundImage:CALL_ICON forState:UIControlStateNormal];
[button addTarget:self action:@selector(speedDial)
forControlEvents:UIControlEventTouchUpInside];
[speedDialView addSubview:button];
return speedDialView;
}
I have added button successfully, but i could not add any other views beside that button.
Can any one help me out?
Thanks in advance..
No comments:
Post a Comment