Upvote:2

Aprove answer

Just add CoreGraphics.framework to your project.

Actually, you don't need add any #import <CoreGraphics/CoreGraphics.h> in your file. You should add the framework like it's:


Credit Goes to: stackoverflow.com

Related question with same questions but different answers