0

I am using MessageUI.Framework in my app but the same could not be run on iOS 3.x. Is there any way in which we can check the OS version at compile time. I have tried few solutions(Soln_1 and Soln_2) on web but they did not work.

halfer
  • 19,824
  • 17
  • 99
  • 186
devsri
  • 6,173
  • 5
  • 32
  • 40

1 Answers1

1

I have got a solution for the same

#ifdef _USE_OS_4_OR_LATER
   //code for iOS 4.0+
#elseif
   //code for the iOS < 4.0
#endif

This worked for me hope it does for all other as well.

devsri
  • 6,173
  • 5
  • 32
  • 40