Latest 0.1.5
Homepage https://github.com/iceesj/CSJTools2
License MIT
Platforms ios 8.0, requires ARC
Frameworks CoreData
Authors

About

CSJTools2 is an Objective-C library for iOS developers.

Version

0.0.5

  • first version

0.0.6

  • add custom UINavigationController
  • add use coredata FetchedResults tableviewcontroller
0.0.7
  • add CSJToolKit

Requirements

  • iOS 6.0 or later
  • must support ARC

Installation with CocoaPods

Podfile
platform :ios, '8.0'
pod 'CSJTools2'

List

CSJMaster.h
//import all .h
CSJLog.h
//common define & log
CSJBase64.h
//return NSString/NSData base64 String
//NSString
+(NSString *)stringFromBase64String:(NSString *)base64String;
-(NSString *)base64String;

//NSData
+(NSData *)dataWithBase64String:(NSString *)base64String;
-(NSString *)base64String;

+(NSData *)dataFromBase64String:(NSString *)base64String;
+(NSString *)base64StringFromData:(NSData *)data;
CSJData.h
//天数差
+(NSInteger)daysBetweenDate:(NSDate*)fromDateTime andDate:(NSDate*)toDateTime;
//小时差
+(NSInteger)hoursBetweenDate:(NSDate *)fromDateTime andDate:(NSDate*)toDateTime;
//分钟差
+(NSInteger)minsBetweenDate:(NSDate*)fromDateTime andDate:(NSDate*)toDateTime;
//秒差
+(NSInteger)secondBetweenDate:(NSDate*)fromDateTime andDate:(NSDate*)toDateTime;

//返回当前年,月,日..
-(int)year;
-(int)month;
-(int)day;
-(int)hour;
-(int)minute;
-(int)second;
CSJDES.h
//与服务器的加密解密
//加密
- (NSString *) DESEncryptByKey:(NSString *)key;
//解密
- (NSString *) DESDecryptByKey:(NSString *)key;
CSJMD5.h
-(NSString *)fileMD5;
-(NSString *)stringMD5;
+(NSString *)md5:(NSString *)inPutText;
CSJString.h
//判断是否是电话号码
- (BOOL)isMobileNumber;
//email
-(BOOL)isEmailAddress;
CSJURL.h
-(NSString *)parameterForKey:(NSString *)key;
-(NSDictionary  *)parameters;
CSJ_NavGestureViewController

A custom gesture to return Navigationcontroller

CSJ_CoredataTableViewController

A automatic NSFetchedResults Coredata Tableviewcontroller

CSJToolKit
+ (CGSize)textSize:(NSString*)text withFont:(UIFont*)font inWidth:(CGFloat)width;

Special thanks to

Thank them sparked my inspiration. Thank them for their contributions to the open source community.

License

CSJTools is available under the MIT license.

Latest podspec

{
    "name": "CSJTools2",
    "version": "0.1.5",
    "license": "MIT",
    "summary": "u66f9u76dbu6770Cocoau5de5u5177u5305",
    "homepage": "https://github.com/iceesj/CSJTools2",
    "authors": {
        "iceesj": "[email protected]"
    },
    "source": {
        "git": "https://github.com/iceesj/CSJTools2.git",
        "tag": "0.1.5"
    },
    "source_files": "CSJTools2/*.{h,m}",
    "platforms": {
        "ios": "8.0"
    },
    "frameworks": "CoreData",
    "prefix_header_contents": "#import ",
    "requires_arc": true
}

Pin It on Pinterest

Share This