摘要: 第三方库 SAMKeychain IDFV:Vendor标示符 也被称为厂商标识符。只要用户设备中没有卸载当前Vendor的所以App ,则不会发生变化。什么是Vendor 可以理解成bundleID的前两部分,例如对于com.job.app_1和com.job.app_2这两个bundleID来说 阅读全文
posted @ 2017-08-28 15:16 huangyan1022 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 1、设置UILabel行间距 1 2 3 4 5 NSMutableAttributedString* attrString = [[NSMutableAttributedString alloc] initWithString:label.text]; NSMutableParagraphStyl 阅读全文
posted @ 2017-07-11 09:38 huangyan1022 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 总结了几个月的东西终于能和大家分享了,不多说,直接看东西! 1、禁止手机睡眠 1 [UIApplication sharedApplication].idleTimerDisabled = YES; 1 [UIApplication sharedApplication].idleTimerDisab 阅读全文
posted @ 2017-07-03 15:21 huangyan1022 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1、禁止手机睡眠 1 [UIApplication sharedApplication].idleTimerDisabled = YES; 1 [UIApplication sharedApplication].idleTimerDisabled = YES; 1 [UIApplication sh 阅读全文
posted @ 2017-06-26 17:25 huangyan1022 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 在最近做的一个Wi-Fi类的项目,需要实现类似万能钥匙中点击一个Wi-Fi跳转到系统Wi-Fi设置界面的功能。废话我就不多说了,下面就是实现代码了。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 NSString * urlString = @"App-Prefs:root 阅读全文
posted @ 2017-06-07 09:53 huangyan1022 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 但是其 iOS7.0 的 SDK 并没有提供给开发者实现毛玻璃效果的 API ,所以很多人都是通过一些别人封装的框架来实现,后面我也会讲到一个。 其实在 iOS7.0 之前还是有系统的类可以实现毛玻璃效果的,就是 UIToolbar 这个类,并且使用相当简单,几行代码就可以搞定。 下面是代码实现: 阅读全文
posted @ 2017-06-01 09:59 huangyan1022 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 网上说的方法 NSString *doc = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; NSString *filename = [doc stringB 阅读全文
posted @ 2017-05-27 17:04 huangyan1022 阅读(522) 评论(0) 推荐(0) 编辑
摘要: //文字分享 NSString *msg = @"您好"; NSString *url = [NSString stringWithFormat:@"whatsapp://send?text=%@", [msg stringByAddingPercentEncodingWithAllowedChar 阅读全文
posted @ 2017-05-27 10:30 huangyan1022 阅读(737) 评论(-2) 推荐(0) 编辑
摘要: NSString * t = @"EMMS_Files\\Business\\WORRF\\TXT\\20170403\\5379774001.pdf"; NSString * a = [t stringByReplacingOccurrencesOfString:@".pdf" withStrin 阅读全文
posted @ 2017-05-27 10:28 huangyan1022 阅读(185) 评论(0) 推荐(0) 编辑
摘要: class ViewController: UIViewController { //声明一个控制器 let viControl = ggViewController() override func viewDidLoad() { super.viewDidLoad() // let intestt 阅读全文
posted @ 2017-05-23 16:40 huangyan1022 阅读(1194) 评论(0) 推荐(0) 编辑