當我設置的tableview的footerView這樣的:如何讓UITableView的FooterView可見?
self.tableView.tableFooterView.frame = CGRectMake(rect.origin.x, rect.origin.y, rect.size.width, 45.0f);
然後我cellCount * cellHeight> tableview.frame.size.height。 然後我發現footerView無法顯示。必須拉它顯示的桌面。如何解決它?
self.tableView.tableFooterView = [[UIView alloc] init];
self.tableView.tableFooterView.backgroundColor = [UIColor orangeColor];
[self.tableView setEditing:YES animated:YES];
self.tableView.tableFooterView.frame = CGRectMake(rect.origin.x, rect.origin.y, rect.size.width, 45.0f);
//It can't to solve My Problem
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:9 inSection:0] atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
你想讓你的頁腳視圖在* all *時顯示,或者當用戶滾動到表格底部時顯示? – 2013-04-28 07:36:48
謝謝! 我希望頁腳視圖在用戶滾動到表格底部時可見。所有時間:使用heightForFooterInSection委託?或其他方式? – yang 2013-04-28 11:14:04