I am following an online tutorial on how to build apps with Xcode. The video shows how to make a button and connect it to code to print out a statement. I have copied the code from the video 100% but it is not working. I have a more updated version so is there something I need to do differently. I am using Xcode 6.4 and the video was using 6.0. This is my code:
- (IBAction) showFunFact() {
println("You pressed me!")
}
// Error: Expected method Body
// Error: Semantic issue, Implicit declaration of function 'println' is invalid in C99
// Parse Issue: Expected ';' after expression
These are the three errors I am receiving but I think the other 2 are due to the fact that the program dose not recognise the println command. Anyone know how to fix this!?