上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 39 下一页

2017年4月1日

Swift 扩展方法,便利构造函数的创建

摘要: 最近项目快完成了,于是开始进入优化项目的阶段了,在oc中,我们可以创建分类来扩展方法,而swift就更方便,下面有两种方法: 代码如下: 这是对UIBarButtonItem 的扩展方法 阅读全文

posted @ 2017-04-01 17:41 高彰 阅读(286) 评论(0) 推荐(0)

2017年3月31日

非常值得学习的第三方资源篇(转)

摘要: 项目源代码 : 1.快速搭建项目源代码 地址: https://github.com/wujunyang/MobileProject 2:高仿美团iOS版 地址:https://github.com/lookingstars/meituan 3:模仿网易新闻做的精仿网易新闻 地址:https://g 阅读全文

posted @ 2017-03-31 15:37 高彰 阅读(246) 评论(0) 推荐(0)

2017年3月30日

iOS 获取当前系统时间戳

摘要: // 获取当前系统时间戳 NSDate* dat = [NSDate dateWithTimeIntervalSinceNow:0]; NSTimeInterval a=[dat timeIntervalSince1970]; NSString *timeString = [NSString stringWithFormat:@"%0.0f", a];//转为字符型... 阅读全文

posted @ 2017-03-30 20:21 高彰 阅读(318) 评论(0) 推荐(0)

2017年3月28日

Swift版 share sdk 第三方登录facebook,推特,googleplus集成 全教程

摘要: 最近在写一个swift项目,需要用到facebook,googleplus,推特,的第三方登录,另外一个做oc项目的同事和我说他的shareSDK第三方登录有一个坑一直解决不了,让我不要用sharesdk,但是楼主是一个有追求的人,毅然投身入sharesdk中。 第壹步:获取sharesdk app 阅读全文

posted @ 2017-03-28 19:35 高彰 阅读(2572) 评论(0) 推荐(0)

2017年3月9日

The file “XXX” couldn’t be opened because you don’t have permission to view it.解决方法

摘要: 援引:http://www.cnblogs.com/zhao-jie-li/p/5314584.html The file “XXX” couldn’t be opened because you don’t have permission to view it.解决方法: 果断删除,不要想太多。 阅读全文

posted @ 2017-03-09 17:23 高彰 阅读(485) 评论(0) 推荐(0)

2017年3月7日

iOS 蓝牙获取MAC地址

摘要: 援引:http://www.jianshu.com/p/1d6a8fc8134f iOS要获取蓝牙设备的MAC地址有两种:一是硬件工程师开通的服务特征下有MAC的信息,我们就从通道中获取;二是硬件工程师在扫描中设备信息中放置MAC信息,我们从有RSSI的函数中获取 1.形如你所在其他网站上看到的在某 阅读全文

posted @ 2017-03-07 11:35 高彰 阅读(3444) 评论(0) 推荐(0)

2017年2月28日

Mac mac MAC 以太网失效,连接了网络 打不开网页 上不了网。

摘要: 援引:http://www.cnbeta.com/articles/tech/479465.htm 阅读全文

posted @ 2017-02-28 10:34 高彰 阅读(520) 评论(0) 推荐(0)

2017年2月27日

[Graphics] UIColor created with component values far outside the expected range, Set a breakpoint on UIColorBreakForOutOfRangeColorComponents to debug. This message will only be logged once.

摘要: 用了别人的代码,一直总有一个报错,一开始没注意,最近项目快完期了,得处理下警告之类的东西, 后面发现之前那个大神代码是这样写的 援引:http://www.cnblogs.com/songxing10000/p/6297542.html 阅读全文

posted @ 2017-02-27 11:41 高彰 阅读(809) 评论(0) 推荐(0)

2017年2月21日

iOS macOS背景色 圆切角 边框色

摘要: UIColor *color1=[UIColor colorWithRed:155/255 green:255/255 blue:255/255 alpha:1];//方法1,使用 静态方法创建color _view1.backgroundColor=color1; UIColor *color2= 阅读全文

posted @ 2017-02-21 16:03 高彰 阅读(357) 评论(0) 推荐(0)

2017年1月17日

has no restore identifier but the delegate implements the centralManager:willRestoreState: method. Restoring will not be supported

摘要: http://stackoverflow.com/questions/20956880/corebluetoothwarning-has-no-restore-identifier-but-the-delegate-implements 就是说:要么删掉。 要么保留。 阅读全文

posted @ 2017-01-17 16:48 高彰 阅读(1196) 评论(0) 推荐(0)

上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 39 下一页

导航