Hi Guys
Does somebody know why I am getting this fault?
I'm doing this in my ViewController:
The class WordClass goes:
Xcode gives me that the ViewController does not have a member called a. I'm puzzled. Thanks for your help.
Does somebody know why I am getting this fault?
I'm doing this in my ViewController:
Code:
var a = WordClass()
var word = a.title
The class WordClass goes:
Code:
class WordClass{
var title: String = "hey"
init(){
title = "hey again"
}
Xcode gives me that the ViewController does not have a member called a. I'm puzzled. Thanks for your help.