The initialization element is not a permanent error.

I declare cg-point or rect, since const, giving the above errors, someone helps this,

#import "newViewController.h"
#import "first.h"

const CGPoint point=CGPointMake(50,50);
+3
source share
1 answer

You cannot use function ( CGPointMake) as initialization of a global variable in C.

But you can do it like this:

const CGPoint point = {50.0f, 50.0f};
+12
source

Source: https://habr.com/ru/post/1740266/


All Articles