I have a public function:
public func lastActivityFor(userName: String) -> String { ... }
and later I want to call it as:
OneLastActivity.lastActivityFor("username")
but the last line get error:
Cannot convert value of type 'String!' to expected argument type 'OneLastActivity'
Why it appears if I send to those function String as suggested?(userName: String)
Any ideas how can I fix it? If you want more code, just ask me about.