顯示具有 nil cannot initialize specified type 標籤的文章。 顯示所有文章
顯示具有 nil cannot initialize specified type 標籤的文章。 顯示所有文章

2016年7月21日 星期四

[swift] nil cannot initialize specified type, swift

nil cannot initialize specified type
ERROR

var delegate:myDelegate = nil

change to 


var delegate:myDelegate? = nil