[Swift Error] Outlets cannot be connected to repeating content.

[Swift Error] Outlets cannot be connected to repeating content.

Swift Error:

Outlet from the TableViewController to the UILabel is invalid. Outlets cannot be connected to repeating content.

주로 CustomCell을 만들때 발생하는 에러이다.
해당 아울렛을 TableViewController에 연결시킬 수 없다는 에러인데,

CustomCell의 클래스를 다음과 같이 CustomCell 클래스를 새롭게 정의하고 그 클래스에 연결시켜주어야 한다.

class CustomCell:UITableViewCell {
 여기에 connect!!
}

다음과 CityStateCell이라는 클래스를 정의했다면, Main.storyboard에 연결시키는것도 잊지말도록 하자.
customcell_stroyboard

댓글

이 블로그의 인기 게시물

CGV 상영시간표 알리

tensorflow softmax_cross_entropy_with_logits