jeudi 12 mars 2015

Swift, variable with same as a method name

I have a :



var formVC:UIViewController!


I'm also trying to have a function named:



func formVC()->UIViewController{....}


I know in OBJC it worked, but I'm not seeing a way to do this in Swift. Is there a way to go about this, or am i not understanding an obvious architectural/conceptual change in Swift?


Thanks in advance.


Aucun commentaire:

Enregistrer un commentaire