UITableView *tableView = (id)[self.view viewWithTag:1]; //why id is used here?
[tableView registerClass:[BIDNameAndColorCell class] forCellReuseIdentifier:CellTableIdentifier];
Это фрагмент кода из книги «Начало разработки iOS 6», глава 8, стр.245.Что означает следующий код? Почему здесь используется «id»?
Хотелось бы знать, почему здесь требуется «id»?
http://stackoverflow.com/questions/17385693/difference-between-casting-to-id-than-real-class-type-objective-c – viggio24