获得Ios系统版本的函数,比方 

   函数定义:

   




[cpp] ​​​



  1. + (float)getIOSVersion;  



   函数实现:





[cpp] ​​​



  1. + (float)getIOSVersion  
  2. {  
  3.     return [[[UIDevice currentDevice] systemVersion] floatValue];  
  4. }