Is there a way to do this type of thing?
static const CGSize maxPageSize = CGSizeMake(460, 651);
This is illegal because “Initializer element is not a compile-time constant.”
I could use individual floats, of course, but I’m wondering if there’s a way to do this.
Since
CGSizeis just a simple C-struct:You can use an initializer list: