Initializer element is not a compile-time constant

here is the image:

 

 

Direct error found CGSizeMake, but direct assignment you can, because when initializing a global or static variables, can only be assigned with a constant, not a variable assignment!

 

Guess you like

Origin www.cnblogs.com/lijianyi/p/11518872.html
Recommended