Hi! I'm following the instructions on this page (https://developer.apple.com/library/ios/referencelibrary/GettingStarted/DevelopiOSAppsSwift/Lesson5.html#//apple_ref/doc/uid/TP40015214-CH19-SW1) to make the app FoodTracker, but I constantly have trouble on this line:
button.addTarget(self, action: #selector(RatingControl.ratingButtonTapped(_:)), forControlEvents: .TouchDown)
Everytime I write the code down Xcode tells me that there's no member such as ratingButtonTapped thing 😟
I tried everything to prove this code works; l updated both Xcode and Swift, I looked for the solutions on the Internet, and so on. But everything didn't work.
I need help. Please.
Thank you.