Reputation: 19
I can't see any output to the console in xCode after printing a string "Button pressed", I have tested the code when the button is pressed so I am sure that the code that prints is reached. Here is the method:
func onRatingButton(button: UIButton) {
print("Button pressed")
}
(Swift) The code is executed when a button is pressed.
This is what my console looks like:
Please help if you can, thanks :)
Thank you everyone who helped, I was apparently looking at the wrong thing :)
Upvotes: 1
Views: 484
Reputation: 2650
Your console is collapsed, you need to click the little icon on the right :
so it becomes blue :
Upvotes: 1