所以我這樣做我的表視圖控制器中的滾動編程到我的第一個單元格。UITableViewScrollPosition後查找UITableViewCell的UIView的框架
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[self.tableView scrollToRowAtIndexPath:indexPath
atScrollPosition:UITableViewScrollPositionBottom
animated:YES];
然後我想獲取該視圖的新的幀:
NSArray *a=[self.tableView visibleCells];
UIView *view = [a firstObject];
然而,框架,這種觀點給我(這是在我的單元陣列的第一個)返回的位置在滾動發生之前。
我試圖把它在一個動畫塊,以確保它已完成滾動它試圖找到它的位置