开发者

Sharing Constants Between Cocoa and Cocoa-Touch apps

开发者 https://www.devze.com 2023-01-17 02:50 出处:网络
I have a class that I want to share between two different applications.The only real difference is the base framework it references.Cocoa importsand of course Cocoa-Touch imports .I would like to use

I have a class that I want to share between two different applications. The only real difference is the base framework it references. Cocoa imports and of course Cocoa-Touch imports . I would like to use a precompiler directive to check what I am compiling to and allow the correct import. What can I check to see if what My target is? or is there a 开发者_JS百科better way to do this?


You're looking for:

#ifdef TARGET_OS_IPHONE
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号