摘要:
UA在项目中的应用 给项目的webview或项目中的接口请求加一个区分,用来区别是iOS端访问、android访问还是在浏览器访问的,这时需要添加User Agent (http请求 header中的一个参数) 1)什么是User Agent? 1. 用户代理 User Agent,是指浏览器,它的 阅读全文
摘要:
终端起别名: 终端快速打开项目 打开终端 /* touch ~/.bash_profile vim ~/.bash_profile alias mall="open 项目路径/xxxx.xcworkspace/" */ 退出保存 然后 source .bashrc 使其生效</span> 退出保存 阅读全文
摘要:
UIAlertView在IOS 8以上版本已经过时了,官方推荐我们使用UIAlertController代替UIAlertView、UIActionSheet 1、UIAlertController显示普通的Alert - (IBAction)showAlert:(UIButton *)sender 阅读全文