摘要:
ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, &error); ABAddressBookRegisterExternalChangeCallback(addressBook, addressBookChan... 阅读全文
摘要:
#import @interface LoadingContactData : NSObject// 读取通讯录+ (LoadingContactData *)shareIntance;- (void)getContactData;@end#import "LoadingContactData.h"... 阅读全文
摘要:
assign: 简单赋值,不更改索引计数-(void)setMyObject:(id)newValue{ _myObject = newValue; }copy: 建立一个索引计数为1的对象,然后释放旧对象-(void)setMyObject:(id)newValue{ if (_myO... 阅读全文
摘要:
1.新建一个single view application2.打开 Info.plist,删除里面的 Launch screen interface file....以及 Main storyboard file base name...3.删除Main.storyboard以及LaunchScr... 阅读全文
摘要:
+ (BOOL)isBetweenFromHour:(NSInteger)fromHour toHour:(NSInteger)toHour{ NSDate *dateFromHour = [self getCustomDateWithHour:fromHour]; NSDate *da... 阅读全文
摘要:
// 中国移动:China Mobile#define ChinaMobile @"^13[4-9]\\d{8}$|^15[012789]\\d{8}$|^18[23478]\\d{8}$|^147\\d{8}$"// 中国联通:China Unicom#define ChinaUnicom @"^... 阅读全文
摘要:
#import @interface UILabel (Create)/** * 创建普通Label * * @param frame frame * @param text text * @param font font * @p... 阅读全文
摘要:
九宫格或者其他类型的坐标设置frame.size.width = 60;//设置按钮坐标及大小frame.size.height = 60;frame.origin.x = (i%3)*(60 + 32)+40;frame.origin.y = floor(i/3)*(60 + 24)+60; 阅读全文
摘要:
#import @interface UIImage (ImageWithColor)+ (UIImage *)imageWithColor:(UIColor *)color;@end#import "UIImage+ImageWithColor.h"@implementation UIImage ... 阅读全文
摘要:
#import #import #import @interface UIImage (Blur)// 0.0 to 1.0- (UIImage*)blurredImage:(CGFloat)blurAmount;@end#import "UIImage+Blur.h"@implementation... 阅读全文