For the code below :
CGRect frame = CGRectMake(0, 0, cellWidth, 240);
MKMapView *mapView = [[MKMapView alloc] initWithFrame:frame];
mapView.layer.masksToBounds = YES;
mapView.layer.cornerRadius = 10.0;
I included MapKit,QuartzCore and CoreLocation Frameworks in addition. For the last 2 lines, I am getting error : "Member access into incomplete type 'CALayer'"
Please tell me why I get this error and how to resolve this
EDIT: I got this error as I did not import Quartz.h, but i still dont understand why its saying incompleteness of CALayer type. Can anyone throw some light into depth of this.
Thanks
Did you: #import <QuartzCore/QuartzCore.h>?
You should import QuartzCore/QuartzCore.h framework in your particular class or file. I think you are not importing this framework in your particular file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With