07 2016 档案

摘要://从路径中获得完整的文件名 (带后缀) 对从相册中取出的图片,视频都有效。 NSString *fileName = [filePath lastPathComponent]; //获得文件名 (不带后缀) NSString *fileName1 = [filePath stringByDelet 阅读全文
posted @ 2016-07-25 12:09 SoulDu 阅读(3967) 评论(1) 推荐(0) 编辑
摘要://颜色生成图片方法 - (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size { CGRect rect = CGRectMake(0, 0, size.width, size.height); UIGraphicsBeginIm 阅读全文
posted @ 2016-07-22 10:18 SoulDu 阅读(256) 评论(0) 推荐(0) 编辑
摘要:qq登录,微信登录,微博登录,友盟第三方登录 阅读全文
posted @ 2016-07-21 21:43 SoulDu 阅读(4412) 评论(0) 推荐(0) 编辑
摘要:1.网络请求报错。升级Xcode 7.0发现网络访问失败。输出错误信息 The resource could not be loaded because the App Transport Security policy requires the use of a secure connection 阅读全文
posted @ 2016-07-21 12:58 SoulDu 阅读(382) 评论(0) 推荐(0) 编辑
摘要:AFHTTPSessionManager *manger = [AFHTTPSessionManager manager]; manger.securityPolicy = [AFSecurityPolicy policyWithPinningMode:AFSSLPinningModeNone]; 阅读全文
posted @ 2016-07-19 11:27 SoulDu 阅读(1787) 评论(0) 推荐(0) 编辑
摘要:/** * 创建媒体播放控制器MPMoviePlayerControlle 可以控制尺寸 * * @return 媒体播放控制器 */ -(MPMoviePlayerController *)moviePlayer{ if (!_moviePlayer) { NSURL *url=[self get 阅读全文
posted @ 2016-07-19 10:56 SoulDu 阅读(3917) 评论(0) 推荐(0) 编辑
摘要://给image添加个分类 +(UIImage *)getImage:(NSURL: *)videoURL { AVURLAsset *asset = [[AVURLAsset alloc] initWithURL:[NSURL fileURLWithPath:videoURL] options:n 阅读全文
posted @ 2016-07-19 10:21 SoulDu 阅读(1240) 评论(0) 推荐(0) 编辑
摘要:ios app跳转拨打电话界面,调用拨打电话功能,可上线,可企业。 阅读全文
posted @ 2016-07-14 11:40 SoulDu 阅读(1892) 评论(0) 推荐(0) 编辑
摘要:首先要干这些事 下面的方法亲测可用 DNLogFUNC //初始化位置管理对象 _locationManager = [[CLLocationManager alloc] init]; //请求用户授权 if ([[[UIDevice currentDevice] systemVersion] fl 阅读全文
posted @ 2016-07-12 16:40 SoulDu 阅读(467) 评论(0) 推荐(0) 编辑