I have a UIView and I\'m trying to set its layer properties.
self.colorSwatch = [[UIView alloc] initWithFrame:CGRectMake(400, 150, 100, 100)];
self.colorSwat
It doesn't know what type of object the layer
property is. Add #import <QuartzCore/QuartzCore.h>
to the top of your file.
You need to import the file #import < QuartzCore/QuartzCore.h> in ViewController.m class if and only if xcode version is less than 5.
See if you are using xcode version 5 or latest than that then not required to import .It is automatically included.