How to declare my very own CGRectZero like constant?
问题 This is a newbie C/Objective-C question :-) Let say I want a CGRectOne and a CGRectTwo constants. How can I declare that? Thanks, Jérémy 回答1: The other answers are fine - in some cases -. A) declaring it static will emit a copy per translation. That is fine if it is visible to exactly one translation (i.e. its definition is in your .m/ .c file). Otherwise, you end up with copies in every translation which includes/imports the header with the static definition. This can result in an inflated