随笔分类 -  基础知识

摘要:https://www.idaima.com/article/4288 iOS 开发 常用的正则验证表达式:电话 、邮箱等等 // 对于不同的验证内容只需要替换不同的验证规则就可以了,以下字符串是常用的正则表达式(以下正则表达式来自互联网) 1.验证用户名和密码:”^[a-zA-Z]\w{5,15} 阅读全文
posted @ 2017-03-13 15:52 索马里猫 阅读(1134) 评论(0) 推荐(0)
摘要:1、不可变数组 2、可变数组 参考链接:http://www.jianshu.com/p/ff19c04b34d0 阅读全文
posted @ 2017-02-20 14:00 索马里猫 阅读(1170) 评论(0) 推荐(0)
摘要:https处理:【此文不涉及自建证书和双向验证,以购买的DV级别证书为例】 一、安卓以OKHttp为例,加载https接口可以正常请求! 二、iOS以AFNetWorking(3.1.0)为例,加载https接口可以正常请求【ATS采用】! 1、接口 可能会出现返回值为NULL的情况,实则和数据解析 阅读全文
posted @ 2016-12-20 09:41 索马里猫 阅读(692) 评论(0) 推荐(0)
摘要:1、在线打开office文档 安卓、iOS都可以用webview打开 2、在线打开office文档、图片、txt 将你的网址直接作为url在webview中打开,即可; (获取后缀名 ) 在打开txt有乱码现象,解决方案如下 3、可以服务端将文件转化为Html,前端webview直接打开! 4、将文 阅读全文
posted @ 2016-08-23 09:29 索马里猫 阅读(1627) 评论(0) 推荐(0)
摘要://色块生成图片 - (UIImage *)buttonImageFromColor:(UIColor *)color{ CGRect rect = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height); UIGraphicsBeginImageContext(rect.siz... 阅读全文
posted @ 2016-08-17 09:57 索马里猫 阅读(747) 评论(0) 推荐(0)
摘要:1、NSNull处理: https://github.com/nicklockwood/NullSafe 2、NSAttributedString富文本 http://www.cocoachina.com/ios/20160802/17258.html https://github.com/wang 阅读全文
posted @ 2016-08-02 08:32 索马里猫 阅读(167) 评论(0) 推荐(0)
摘要:1、打开终端; 2、GET: curl xxxxxx(网址) 3、POST: curl -d "key=value" -d "key=value" xxxxx(网址) 阅读全文
posted @ 2016-07-25 09:12 索马里猫 阅读(281) 评论(0) 推荐(0)
摘要:设置完之后,发现分割线距离左边并不是为0。只需要再设置layoutMargins属性即可,两者缺一不可。 阅读全文
posted @ 2016-07-22 09:08 索马里猫 阅读(151) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/ios/20160722/17148.html 阅读全文
posted @ 2016-07-22 08:24 索马里猫 阅读(90) 评论(0) 推荐(0)
摘要:http://www.cocoachina.com/ios/20160713/17026.html 阅读全文
posted @ 2016-07-13 09:39 索马里猫 阅读(103) 评论(0) 推荐(0)
摘要:http://www.jianshu.com/p/a4755c789545 阅读全文
posted @ 2016-07-08 13:52 索马里猫 阅读(176) 评论(0) 推荐(0)
摘要:两个view控制底部隐藏 1、底部隐藏 NSArray* constrains = self.ve_bottom.constraints; for (NSLayoutConstraint* constraint in constrains) { if (constraint.firstAttribute == NSLayoutAttribu... 阅读全文
posted @ 2016-06-22 16:26 索马里猫 阅读(160) 评论(0) 推荐(0)
摘要:苹果账号:1、苹果AppleID账号https://idmsa.apple.com/IDMSWebAuth/login?&appIdKey=891bd3417a7776362562d2197f89480a8547b108fd934911bcbea0110d07f757&path=%2F%2Fmemb 阅读全文
posted @ 2016-06-20 09:28 索马里猫 阅读(576) 评论(0) 推荐(0)
摘要:解决办法 阅读全文
posted @ 2016-06-12 10:25 索马里猫 阅读(1062) 评论(0) 推荐(0)
摘要:一、iOS开发经验总结经验 http://www.jianshu.com/p/d333cf6ae4b0 二、iOS开发中的小Tips http://shavekevin.com/2016/04/12/iosdeveloptips/ 三、iOS开发知识点 http://www.jianshu.com/ 阅读全文
posted @ 2016-05-31 14:02 索马里猫 阅读(273) 评论(1) 推荐(0)
摘要:https://itunes.apple.com/cn/app/id1067167643?mt=8 阅读全文
posted @ 2016-05-31 09:20 索马里猫 阅读(250) 评论(0) 推荐(0)
摘要:http://www.jianshu.com/p/1104339346bd 阅读全文
posted @ 2016-05-30 16:49 索马里猫 阅读(370) 评论(0) 推荐(0)
摘要:1、添加库 2、添加代理 3、添加逻辑代码 4、SKStoreProductViewController跳转截图 5、openURL截图 阅读全文
posted @ 2016-05-27 17:25 索马里猫 阅读(383) 评论(0) 推荐(0)
摘要:http://www.jianshu.com/p/997f96d2a0b5 阅读全文
posted @ 2016-05-27 13:50 索马里猫 阅读(112) 评论(0) 推荐(0)
摘要:http://www.jianshu.com/p/2ea9c3f737ea 一、nil的定义是null pointer to object-c object, 指的是一个OC对象指针为空,本质就是(id)0,是OC对象的字面0值 二、NULL的定义是null pointer to primitive 阅读全文
posted @ 2016-05-23 09:42 索马里猫 阅读(137) 评论(0) 推荐(0)