if i have developed an app in older ios version and in future if lot of classes and methods are deprecated...how do i overcome this to make my app run in all version...
The basic solution is checking whether the class exists??that is making use of weakly linked class concept...like:
if (NSClassFromString(@"NewClass")){
NewClass *try=[NewClass new];
[try print1new];
}else{
OldClass *try1=[OldClass new];
[try1 print1];
}
but since i have used deprecated methods in lot of places....i cant modify each and every thing...is there any solution to overcome deprecation with minimal changes in the old code.