I am very much new to the iPhone SDK. I just haven't been able to find the right search query to find out how to do this kind of checking for the existence of a new or deprecated feature.
Case in point:
iOS4 deprecates UIKeyboardBoundsUserInfoKey used for checking the height of the keyboard (and moving, scrolling or whatever to adjust for it). I could still use it but I would like to use the new UIKeyboardFrameEndUserInfoKey on 3.2 and above but still fall back to the old one for older 3.x versions.
How do I determine if UIKeyboardFrameEndUserInfoKey (a global constant) is declared and exists? I guess that is what I need to check since I cant check if the Dictionary contains the key if the key is not even defined anywhere in the Frameworks for the current OS version.
Any advice on this kind of version checking would be helpful. I am sure I will run into other things as well.