How to declare my very own CGRectZero like constant?

前端 未结 4 1642
失恋的感觉
失恋的感觉 2021-01-31 18:54

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

4条回答
  •  时光取名叫无心
    2021-01-31 19:50

    The technique used here worked well for me: http://www.cocos2d-iphone.org/forum/topic/2612#post-16402

    Essentially its the extern method described by Justin, but it provides a pretty full example.

    Also, this answer on StackOverflow provides a good example too: Constants in Objective-C

提交回复
热议问题