CodeGeek123
CodeGeek123

Reputation: 4501

IBOutlet not connecting to uitableviewcell

I have a UITableView and I also have a UITableViewCell in my interface. Now I try to create an outlet for UITableViewCell in my class and I connect it to the interface the normal way anyone would. When i run it, it fails giving the error could not compile connection :

ibcocoatouchoutletconnection : 87q50w485w < IBProxyObject : 9u7-25whnsk> => UIViewTableViewCell => <IBUIViewTableCell>, where uiViewTableCell is the name for my IBoutlet.

I have been stuck with this for a while so any help would be appreciated. Theres hardly any help online for this error as well.

Upvotes: 1

Views: 1141

Answers (2)

Wolverine
Wolverine

Reputation: 4329

You are Not need to connect Outlet For TableviewCell. Jsut GO To IB.

-> Click On TableviewCell

-> Go to Identity Inspector

-> In Class Property inseatd of Tableviewcell Choose Your CustomCell Calss Out there.

-> Now You Can Customize Your tableview Cell.

Upvotes: 0

Oscar Gomez
Oscar Gomez

Reputation: 18488

Are you declaring your property like this:

@property (nonatomic, retain) IBOutlet UITableViewCell *myTableViewCell

Looks like you are declaring it like IBUIViewTableCell.

Upvotes: 1

Related Questions