Currently I am using something like this for ARC compatibility between iOS 4.0~4.3:
- (void) viewDidUnload {
#if __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_4_3
#else
//set outlets to nil
#endif
}
The #if<->#else area is always empty. So my question is this. Is there a cleaner way to write the #if line so I don’t need the #else statement? I tried to use “<” but it didn’t seem to understand.
So I can now answer my own question. Brace yourselves:
Take
and replace it with
It seems the compiler doesn’t support < in macros.