Recommended way to support backward/forward compatibility in iPhone app?
        Posted  
        
            by MrAleGuy
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by MrAleGuy
        
        
        
        Published on 2010-06-02T00:51:59Z
        Indexed on 
            2010/06/02
            0:53 UTC
        
        
        Read the original article
        Hit count: 334
        
I'm in the early stages of an iPhone app and I have a question. I did some searching but did not find what I was looking for.
There are features in iPhone OS4 that I would like to take advantage of, but I would like for my app to also run on 3.X.
It looks like I want to develop against the 4.0 SDK and do the following:
- Create a "weak link" to any new (4.0) frameworks
 - Call 
respondsToSelector:for any new method in an existing framework or any method in a new framework before making that call 
Am I close? What's recommended?
Pointers to similar questions welcome.
© Stack Overflow or respective owner