點擊UISearchController的搜索按鈕後,滾動指示器停止在鍵盤高度。 我登錄contentsize,它打印出來作爲1056.000000 EdgeInsets均爲0所有參數 scroll indicator imageUISearchDisplayController中的滾動視圖指示器的意外行爲
爲使其正確
點擊UISearchController的搜索按鈕後,滾動指示器停止在鍵盤高度。 我登錄contentsize,它打印出來作爲1056.000000 EdgeInsets均爲0所有參數 scroll indicator imageUISearchDisplayController中的滾動視圖指示器的意外行爲
爲使其正確
得到了問題,需要插圖設置爲零
- (void)searchDisplayController:(UISearchDisplayController *)controller willShowSearchResultsTableView:(UITableView *)tableView {
[tableView setContentInset:UIEdgeInsetsZero];
[tableView setScrollIndicatorInsets:UIEdgeInsetsZero];
}
任何建議
嗯,你可能會遇到同樣的問題,通過進入Storyboard和重新排序您的p上的控件關節的iOS屏幕:
Why is there extra padding at the top of my UITableView with style UITableViewStyleGrouped in iOS7
此錯誤仍然活着,踢和惱人在IOS 8.2,並且似乎影響任何標準iOS與垂直滾動條(的UITableView,UIScrollView中,UITextView的,等等)
控制