[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에 연결시키는것도 잊지말도록 하자.
댓글
댓글 쓰기