Is there a way of knowing if I am running in iOS 5 (or less) or 6 (or later)?
I am using Google API for directions in iOS 5 and I would like to use Apple's in iOS 6.
Since you are programming against iOS 5 you can use the more recent method of checking for weakly linked libraries by just calling the class's class method, which returns nil if it's not supported.
As an example (taken from the documentation):
if ([UIPrintInteractionController class]) {
// Create an instance of the class and use it.
}
else {
// The print interaction controller is not available.
}
This requires LLVM and Clang, but as your supporting iOS5 and iOS6, you should be using this anyway.