@IBAction func first(sender: AnyObject) {
println("Hello World")
}
@IBAction func second(sender: Anyobject) {
// I need to call function first here.
}
I need to use one function inside another, because the sender type is Anyobject, I don't know how to call it.
IBActionfrom anotherIBAction?func) that are not bound to anIBAction. You will want to use anIBActionfor firing button presses only.