ios开发随记
文章平均质量分 57
sisitwo
这个作者很懒,什么都没留下…
展开
-
UITableViewCell标识符说明
if(indexPath.row==outArrayRow) { cell.accessoryType=UITableViewCellAccessoryCheckmark; /* UITableViewCellAccessoryCheckmark 一个选择的小钩钩原创 2014-12-01 14:22:12 · 437 阅读 · 0 评论 -
AFNetworking中UIImageView+AFNetworking等清除缓存方法
在UIImageView+AFNetworking的头文件中加入静态方法 UIImageView+AFnetworking.h + (void)clearCache; + (void)clearCacheWithURL:(NSURL *)url; UIImageView+AFNetworking.m //清除所有缓存 + (void)clearCache {原创 2015-11-02 16:10:16 · 3398 阅读 · 1 评论 -
ios 获取日期(年、月、日、星期、时、分、秒)
// +(NSDictionary *)getTimeFromDate:(NSDate *)date { NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; NSLocale *zhLocale = [[NSLocale alloc] initWith原创 2015-11-02 16:34:52 · 628 阅读 · 0 评论 -
ios 定位经纬度中国国内修正
CommonMapWGS.h #import #import #import "MyAnnotation.h" @interface CommonMapWGS : NSObject +(CLLocationCoordinate2D)wgs84ToGcj02:(CLLocationCoordinate2D)wgCoord; @end CommonMapWGS.m #import "C原创 2015-11-02 16:37:59 · 427 阅读 · 0 评论 -
ios 画虚线方法
CAShapeLayer *shapeLayer = [CAShapeLayer layer]; [shapeLayer setBounds:self.lineLayer.bounds]; [shapeLayer setPosition:CGPointMake(CGRectGetWidth(self.lineLayer.frame), CGRectGetHeight(self.li原创 2016-12-29 09:05:26 · 281 阅读 · 0 评论