나는 셀 액세서리를 바꾸기 위해
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
cellForRowAtIndexPath에서 서브 클래 싱 된 UITableViewCell 가져 오기
를
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
에서 호출했다. 이 잘 작동하지만 UITableViewCell 하위 클래스 필요가 결국. 서브 클래 싱 된 UITableViewCell을 얻는 올바른 방법은 무엇입니까? 대체 A : UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
CustomCell: 0x4527ed0; baseClass = UITableViewCell
대체 B는 컴파일되지 않습니다.
CustomCell *cell = [tableView cellForRowAtIndexPath:indexPath];
미리 감사드립니다 !
완벽하고 고맙습니다. –