iphone-common-codes-ccteam源代码 CCIOS.m
来源:互联网 发布:网络入侵检测系统 编辑:程序博客网 时间:2024/06/05 20:09
//// CCIOS.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCIOS.h"#import "CCNSString.h"#import "CCUIDevice.h"@implementation CCIOS//获取OS版本+ (NSString *)osVersion { return [[UIDevice currentDevice] systemVersion];}// 获取OS主版本号+ (NSString *)osMajorVer{ NSString *osVer = [self osVersion]; if(osVer == nil) return nil; NSInteger index = [osVer firstIndexOfChar:'.']; if(index < 0) { return osVer; } else if(0 == index) { return @""; } else { return [osVer substringToIndex:index]; }}// 获取OS子版本号+ (NSString *)osMinorVer{ NSString *osVer = [self osVersion]; NSInteger firstIndex = [osVer firstIndexOfChar:'.']; NSInteger lastIndex = [osVer firstIndexOfChar:'.' withAppearCount:2]; if(firstIndex < 0) { return @""; } else if(lastIndex < 0) { if(firstIndex == osVer.length - 1) { return @""; } return [osVer substringWithRange:NSMakeRange(firstIndex + 1, osVer.length - firstIndex - 1)]; } else { return [osVer substringWithRange:NSMakeRange(firstIndex + 1, lastIndex - firstIndex - 1)]; }}// whether the device supports multitask+ (BOOL)isSupportsMultitask __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_0){ return [UIDevice isSupportsMultitask];}@end
googlecode链接地址(会有更新):http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCIOS.m
github地址:https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCIOS.m
- iphone-common-codes-ccteam源代码 CCIOS.m
- iphone-common-codes-ccteam源代码 CCIOS.h
- iphone-common-codes-ccteam源代码 CCAddressBook.m
- iphone-common-codes-ccteam源代码 CCAutoDisappearView.m
- iphone-common-codes-ccteam源代码 CCBaseTipView.m
- iphone-common-codes-ccteam源代码 CCCALayer.m
- iphone-common-codes-ccteam源代码 CCCamera.m
- iphone-common-codes-ccteam源代码 CCCommon.m
- iphone-common-codes-ccteam源代码 CCCompile.m
- iphone-common-codes-ccteam源代码 CCConfig.m
- iphone-common-codes-ccteam源代码 CCContact.m
- iphone-common-codes-ccteam源代码 CCDelete.m
- iphone-common-codes-ccteam源代码 CCDepend.m
- iphone-common-codes-ccteam源代码 CCDylib.m
- iphone-common-codes-ccteam源代码 CCEmoji.m
- iphone-common-codes-ccteam源代码 CCEncoding.m
- iphone-common-codes-ccteam源代码 CCFile.m
- iphone-common-codes-ccteam源代码 CCFileName.m
- any 、all
- group by
- iphone-common-codes-ccteam源代码 CCIOS.h
- convert cast
- sql 语句练习
- iphone-common-codes-ccteam源代码 CCIOS.m
- iphone-common-codes-ccteam源代码 CCInfoPlistFileReader.h
- 函数对象
- Android Phone类讲解
- iphone-common-codes-ccteam源代码 CCInfoPlistFileReader.m
- iphone-common-codes-ccteam源代码 CCKeyboard.h
- jogl基础入门学习
- iphone-common-codes-ccteam源代码 CCKeyboard.m
- googlemap开发总结(googlemap apiv3 inforwindow样式的自定义)