Prefix.pch文件-判断iOS系统版本

时间:2014-10-26 18:14:26   收藏:0   阅读:265

ItcastWeibo-Prefix.pch

//
//  Prefix header
//
//  The contents of this file are implicitly included at the beginning of every source file.
//

#import <Availability.h>

#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif

#ifdef __OBJC__
    #import <UIKit/UIKit.h>
    #import <Foundation/Foundation.h>
    #define iOS7 ([[[UIDevice currentDevice] systemVersion]doubleValue] >= 7.0)
#endif


原文:http://www.cnblogs.com/xiaokanfengyu/p/4052142.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!