मैं यह पता लगाने की कोशिश कर रहा हूं कि उपयोगकर्ता UITableView के नीचे स्क्रॉल किया गया है ताकि मैं कुछ अतिरिक्त सामान कर सकूं। चीजों की सही गणना करने के लिए, मुझे UITableView के दृश्यमान आय प्राप्त करने की आवश्यकता है। इसे कैसे प्राप्त किया जा सकता है?मैं UITableView के दृश्यमान आय को कैसे प्राप्त कर सकता हूं?
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{
[_refreshHeaderView egoRefreshScrollViewDidScroll:scrollView];
int currentMaxPosition = CGRectGetMaxY([self.tableView visibleRect]);
int currentMinPosition = CGRectGetMinY([self.tableView visibleRect]);
int tableViewBottom = [self.tableView bounds].size.height - 100;
int tableViewTop = 0;
//get older messages once we're near the bottom
if (currentMaxPosition > tableViewBottom - 100)
{
NSLog(@"WE AT THE BOTTOM!");
}
}
दृश्यमान के आधार पर मैं कैसे निर्धारित करूं कि उपयोगकर्ता नीचे है या नहीं? –
इन पंक्तियों –