摘要:
NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"xiaoli" ofType:@"plist"]; NSMutableDictionary *dataDictionary = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath]; 写plist N... 阅读全文
posted @ 2016-08-19 10:28
J-Vijay
阅读(100)
评论(0)
推荐(0)
摘要:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel://%@",self.phoneNum]]]; 阅读全文
posted @ 2016-08-19 10:27
J-Vijay
阅读(104)
评论(0)
推荐(0)
摘要:
NSArray *gifArray = [NSArray arrayWithObjects:[UIImage imageNamed:@"lanya1"],[UIImage imageNamed:@"lanya2"],[UIImage imageNamed:@"lanya3"],[UIImage imageNamed:@"lanya4"], nil]; self.gifImageView.anim... 阅读全文
posted @ 2016-08-19 10:26
J-Vijay
阅读(252)
评论(0)
推荐(0)
摘要:
+ (NSString *)stringWithDate:(NSDate *)date{ // 1.获得年月日 NSCalendar *calendar = [NSCalendar currentCalendar]; NSUInteger unitFlags = NSCalendarUnitYear| NSCalendarUnitMonth | NSCalendarUnitDay |NSC... 阅读全文
posted @ 2016-08-19 10:25
J-Vijay
阅读(1077)
评论(0)
推荐(0)
摘要:
__block NSInteger timeout= 60; //倒计时时间 KWeakSelf dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_source_t _timer = dispatch_source_create(DISPATCH_... 阅读全文
posted @ 2016-08-19 10:18
J-Vijay
阅读(331)
评论(0)
推荐(0)
摘要:
- (void)actionSheet : (ServiceNetworkModel *)model{ __block NSString *urlScheme = @"demoURI://"; __block NSString *appName = @"demoURI"; __block CLLocationCoordinate2D coordinate = CLLocationC... 阅读全文
posted @ 2016-08-19 10:11
J-Vijay
阅读(7038)
评论(0)
推荐(0)
摘要:
SDWebImage 支持异步的图片下载+缓存,提供了 UIImageView+WebCacha 的 category,方便使用。SDWebImage加载图片的流程: 1. 入口 setImageWithURL:placeholderImage:options: 会先把 placeholderIma 阅读全文
posted @ 2016-08-19 10:04
J-Vijay
阅读(214)
评论(0)
推荐(0)
摘要:
1. 实现数据模型缓存 可以用NSKeyedArchiver类来实现数据模型缓存。为了把模型对象用NSKeyedArchiver归档,模型类需要遵循NSCoding协议。 . 应该用哪种缓存技术 在众多可以本地保存数据的技术中,有三种脱颖而出:URL缓存、数据模型缓存(利用NSKeyedArchiv 阅读全文
posted @ 2016-08-19 10:02
J-Vijay
阅读(118)
评论(0)
推荐(0)