Graceful degradation on iPhone

Posted by Seva Alekseyev on Stack Overflow See other posts from Stack Overflow or by Seva Alekseyev
Published on 2010-04-18T18:24:09Z Indexed on 2010/04/18 18:33 UTC
Read the original article Hit count: 391

Filed under:
|

How do I write a program for iPhone (Objective C++) that runs on OS 2.0 but takes advantage of 3.0 features if they're available?

Example: copy&paste (class UIPasteboard). Nice feature to have, but I don't want to kill backward compatibility. Do I compile against SDK v. 3 or v. 2? If the latter, how do I create an instance of UIPasteboard, considering it's not declared in the headers? If the former, won't some C-linkage functions cause "unresolved reference" upon loading under OS 2.0?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch