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
Michiko Perry
3,617 PointsQuartzCore Framework
Do I need to add Quartz Core Framework every time? I really appreciate if you explain what it is for or any link that I can learn more. Thanks.
1 Answer
Gabe Nadel
Treehouse Guest TeacherAs per the docs: [QuartzCore is a framework that] supports image processing and video image manipulation.
In general, you would want to import that framework or just about any framework you planned on using in the file. So in answer to your question, if you code makes use of QuartzCore objects or methods, you'll want to make sure you have access to it. However, as of iOS 7, with QuartzCore, you actually don't have to explicitly import it, provided UIKit is imported. This is because UISlider is already imported within UIKit. Specifically, it makes use of the CALayer class.
Michiko Perry
3,617 PointsMichiko Perry
3,617 PointsThanks for your reply. I've been taking Swift language and among Amit and Pasan's videos, they have never touched about QuartzCore. I guessed it is for Objective-C, or is it still necessary in Swift programming? (I don't have any knowledge about Objective-C.) Thanks for your help.