摘要: 一:源代码实例 1:快速搭建项目源代码 地址:https://github.com/wujunyang/MobileProject 2:高仿美团iOS版 地址:https://github.com/lookingstars/meituan 3:模仿网易新闻做的精仿网易新闻 地址:https://gi 阅读全文
posted @ 2017-04-06 16:26 GJR 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 当修饰可变类型的属性时,如NSMutableArray、NSMutableDictionary、NSMutableString,用strong。 当修饰不可变类型的属性时,如NSArray、NSDictionary、NSString,用copy。 阅读全文
posted @ 2016-12-20 15:29 GJR 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 数字字母字符:[ \da zA Z =\\;',./~!@ $%^& ()_+|{}:?]+)|(\d+[ =\\;',./~!@ $%^& ()_+|{}:?]+)|([a zA Z]+[ =\\;',./~!@ $%^& ()_+|{}:?]+\d+[a zA Z]+)|([ =\\;',./~ 阅读全文
posted @ 2016-11-23 14:50 GJR 阅读(2548) 评论(0) 推荐(0) 编辑
摘要: 如果需要恢复允许“任何来源”的选项,请打开终端,在终端运行以下命令(可能会要求输入密码): sudo spctl master disable 阅读全文
posted @ 2016-11-01 09:21 GJR 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 一、使用UIView类实现动画 基本写法,代码必须放在Begin和Commit之间: [UIView beginAnimations:nil context:nil]; // 开始动画 // Code... [UIView commitAnimations]; // 提交动画 简单例子: [UIVi 阅读全文
posted @ 2016-10-31 10:51 GJR 阅读(250) 评论(0) 推荐(0) 编辑
摘要: iOS10.0之前跳转系统设置的方法 NSURL url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];[[UIApplication sharedApplication] openURL:url]; iOS10.0之后的跳转方 阅读全文
posted @ 2016-10-14 08:37 GJR 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 1,这种方法,拨打完电话回不到原来的应用,会停留在通讯录里,而且是直接拨打,不弹出提示 NSMutableString str=[[NSMutableString alloc] initWithFormat:@"tel:%@",@"186xxxx6979"]; // NSLog(@"str===== 阅读全文
posted @ 2016-10-08 10:20 GJR 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 当然在UITableView中还有关于索引的相关属性设置如下: _myTableView.sectionIndexColor = [UIColorblueColor];//设置默认时索引值颜色 _myTableView.sectionIndexTrackingBackgroundColor = [U 阅读全文
posted @ 2016-09-30 17:28 GJR 阅读(273) 评论(0) 推荐(0) 编辑
摘要: This is the error when the symbols are missing. Usually you get this error when your device has higher version than the Xcode such as iOS 10 vs Xcode 阅读全文
posted @ 2016-09-14 16:38 GJR 阅读(224) 评论(0) 推荐(0) 编辑
摘要: pragma mark 旋转动画 (void)rotate360DegreeWithImageView:(UIImageView )imageView { CABasicAnimation animation = [ CABasicAnimation animationWithKeyPath: @" 阅读全文
posted @ 2016-08-29 17:18 GJR 阅读(189) 评论(0) 推荐(0) 编辑