How can I translate the following code snippet from Swift to Objective-C?
#if compiler(>=5.5)
if #available(iOS 15.0, *) {
myTableView.sectionHeaderTopPadding = 0.0
}
#endif
Alternatively, is there any macro in objective c side that assists to know the compiler version?
Cy-4AH suggested and answer that used,
#ifdef __IPHONE_13_0
if (@available(iOS 13.0, *)) {
...
}
#endif
However, in my case #ifdef __IPHONE_15_0
is not available in Xcode 12.x.