-5
我經歷了我工作的代碼有問題,請幫我在這件事使用未申報類型爲「CostumTableViewCell」
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cellIdentifier = "Cell"
let cell = tableView.dequeueReusableCellWithIdentifier(cellIdentifier, forIndexPath: indexPath) as CostumTableViewCell
你使用xib我認爲?如果是的話,你必須先載入xib,然後你可以像這樣申報 –
clean並運行一次 –
必須有一個自定義類'CostumTableViewCell'或者它只是一個錯字'Costum' vs'Custom' – vadian