How to set return type for function in SWIFT.
Syntax for function with return type is
fund functionName()-> return type {
return value }
Example
func sayHello(personName: String) -> String { let greeting = "Hello, " + personName + "!" return greeting }
Is it possible to set multiple return type for function in SWIFT. If yes please provide me syntax .
How to set image for UIImageView in UITableViewCell Asynchronously for each cell.
I am facing situation to use external parameter name to a function parameter name .. How to achieve this
How to declare single parameter which accept multiple values.
how to use reusable identifier for table view cell in SWIFT. In Objective C:
static NSString *identifier = @"mainMenuCell"; cell =[tableView dequeueReusableCellWithIdentifier:identifier];
Then how it should be in SWIFT