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 を返すことに注意してください。