質問編集履歴

1

エラー内容を追記しました!よろしくお願いいたします。

2015/12/17 14:17

投稿

ShoheiOkamoto
ShoheiOkamoto

スコア11

test CHANGED
File without changes
test CHANGED
@@ -84,13 +84,15 @@
84
84
 
85
85
  let cell = tableView.dequeueReusableCellWithIdentifier("MyCell", forIndexPath: indexPath)
86
86
 
87
-
88
-
89
- cell.textLabel!.text = "\(myItems[indexPath.row])"
87
+ //エラー内容→ Constant'cell' inferred to have type 'AnyObject',which may be unexpected
90
88
 
91
89
 
92
90
 
91
+ cell.textLabel!.text = "\(myItems[indexPath.row])"//エラー内容→ 'UILabel?' does not have a member named 'text'
92
+
93
+
94
+
93
- return cell
95
+ return cell//エラー内容→ Type'AnyObject' cannot be implicity downcast to 'UITableViewCell';did you mean to use 'as' to force downcast?
94
96
 
95
97
  }
96
98