i am declaring cg-point or rect as const it giving above error any one help this,,
#import "newViewController.h"
#import "first.h"
const CGPoint point=CGPointMake(50,50);
You can't use a function (CGPointMake) as global variable initialization in C.
But you could do it like this:
const CGPoint point = {50.0f, 50.0f};
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