我的UITableView具有固定位置的子視圖。但是當我滾動時,滾動條被子視圖隱藏。我怎樣才能避免這種情況?iOS:通過子視圖隱藏的UITableView滾動條
## EDIT ##
self.menuViewRelative = [[UIView alloc] init];
self.menuViewRelative.backgroundColor = [UIColor whiteColor];
self.menuViewRelative.opaque = YES;
self.menuViewRelative.frame = CGRectMake(0.0, -1.0, 320.0, 50.0);
[self.view insertSubview:self.menuViewRelative atIndex:11];
此子視圖是其他現在高於10子視圖和下滾動視圖正好1層(所以它顯示了滾動指示完美)。
爲表格視圖設置'scrollIndicatorInsets',使滾動條移動到子視圖不會重疊的位置。 例如: - 'self.tableView.scrollIndicatorInsets = UIEdgeInsetsMake(0,0,7.0,7.0);' – iDev
@ACB您應該做出該答案! –
@ JesseRusak,謝謝。我已添加爲答案。我在等待有人給出更好的答案,我也不希望OP錯過這個。因此添加爲評論。 – iDev