I am using an application that contains some classes supported on ios7 and cause crashing when launching the app on ios6 So i am trying to find a way to disable these classes(some functions in these classes) when building on ios6 target but still can't find anything useful on the internet. i tired the following link:
How to execute a block of code in IOS7 not in IOS6? but not worked for me and the app still crahed on startup.
Also,
I tried to use the following for the defined classes
#define IS_IOS7 (([[UIDevice currentDevice].systemVersion intValue] > 6)?64:0)
if(IS_IOS7)
{
//classes definition
}
but still without any success and the application continue crashing on launching. Can anyone help me with this issue?
Thank you