The problem is more likely to be in the storyboard than in the code you provided.
What is the class name of the view controller in the storyboard's identity inspector? Choose View > Inspectors > Identity in Xcode to show the identity inspector.
The class name in the storyboard needs to be the name of your view controller's class, ViewController in your code example. What is most likely happening is the view controller's class is UIViewController in the storyboard. UIViewController doesn't have a buttonPressed selector, ViewController does. If you change the name of the class to ViewController, the error should go away.
Is the IBAction connected? There should be a filled-in circle next to the line of code in Xcode's editor.
If the error persists, you will have to provide more information on how you set up your storyboard for anyone to help you.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: