Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 NSIndexPath* 类型的 indexPath,对 tableView 的引用,我想使用这些来获取相应单元格的句柄。我如何 dp 这样做?
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
但请注意,如果相应的行目前不可见(或 indexPath 超出表的范围),该方法将返回 nil