Как я могу использовать пользовательские UITableViewCell и UITableView в одном XIB

Я хочу использовать пользовательский UITableviewCell с UITableView в том же XIB без создания класса UITableViewCell?

Как вы можете видеть ниже, я установил идентификатор для UITableViewCell и использовал его так:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
    static NSString *CellIdentifier = @"CustomIdentifier";

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
  }

}

Но не работает?

Ответы на вопрос(3)

Ваш ответ на вопрос