Constants can also be weak. To check if a constant is available, you should check if its address is NULL before trying to use it:
if (&AVCaptureSessionPresetiFrame960x540 != NULL) {
Pay attention to the & operator to accept the constant address.
Sven
source share