Vlad Alexeev
Vlad Alexeev

Reputation: 2214

Xcode interface Builder doesn't give me option where to put reuse identifier for a UITableViewCell

I've created a new xib by New File->View. So, I put a name for my class which is a child of UITableViewCell.

enter image description here

But in the next inlay there is no option of where to put in a reuse identifier.

enter image description here

I tried this several times and it's all the same. Could anyone suggest me how to fix it?

Upvotes: 2

Views: 870

Answers (3)

Manish Mahajan
Manish Mahajan

Reputation: 2082

If you have want to set Reuse Identifier for cell, then must use cocoatuch file with xib select see below image. You can't create seperate xib, coz xib file have no any property like Reuse identifier.

enter image description here

Upvotes: 1

Rohit Makwana
Rohit Makwana

Reputation: 4885

it looks like you selected something else, Not TableViewCell

Please see below screenshot

enter image description here

Upvotes: 2

Jigar
Jigar

Reputation: 1821

enter image description here

create UITableViewCell like this bcs you take the uiview and extend the tableviewcell class

see second image you have UIView not cell

enter image description here

Upvotes: 2

Related Questions