Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Unsubscribed User
6,281 PointsUIkit not imported -> gives fail
When I first created the new file, the UIkit was not imported by default. Then I looked around the internet, and found that I need to import the kit with the code: #import <UIKit/UIKit.h>...
That isn't working. It constantly gives me errors, and when I've fixed the errors it gives me new errors.. Like: Expected Expression, Must be seperated by ";" and so on.
Anyone know what to do?
1 Answer
Unsubscribed User
6,281 PointsHayden
Tank you! :)
Hayden Pennington
6,154 PointsHayden Pennington
6,154 PointsAre you using Swift or Objective-C?
In Swift, it would be "import UIKit", without the quotes, and without a hashtag. And be sure that the first three letters of "UIKit" are capitalized.