Session 11 Swift IOS Code

IOS Mobile Application Development        

Session 11 Swift IOS Code

//Closure
let fahadclosure = 
{
print("Clousure with fahad hussain cs")
}
fahadclosure()
let fahadclosure1:(String) -> =
{
app in print("Clousure with fahad hussain cs\(app)")
}
fahadclosure1("Swift IOS")
let fahadclosure2:(String) ->(String) =
{
app in let values = "Hi everyone!\(app)"
return values;
}
fahadclosure2("Swift IOS");

No comments:

Post a Comment

Fell free to write your query in comment. Your Comments will be fully encouraged.