I read a lot of questions about creating a cross-platform library for these 2 systems. Every answer points to static library as the solution.
I don\'t want to end up
When it comes to UIColor/NSColor, I handle it like this:
#if TARGET_OS_IPHONE
#define ImageClassName UIImage
#else
#define ImageClassName NSImage
#endif
Then, in header files, and if you're just passing instances around, you can just use e.g. ImageClassName *.
Repeat the #if block in your code when you need to use the UIColor/NSColor APIs.