常用pod命令 在podfile中指定仓库地址比如source 'https://github.com/CocoaPods/Specs.git'比如source 'https://gitee.com/mirrors/CocoaPods-Specs.git':git指定自定义 git 库 pod 'AFNetworking', :git => 'https://github.com/gowalla/AFNetworking.git' , :tag => '0.7.0':path指定本地库 po
mac配置多个git账号 生成ssh key (SSH,可以连接并验证远程服务器和服务,无需在每次访问GitHub时提供用户名和访问令牌)1.生成多个ssh key// 第一个sshkeyssh-keygen -t rsa -f id_xxxx1 -C "email@xxx.com"// 第二个sshkeyssh-keygen -t rsa -f id_xxxx2 -C "email@xxx.com"```json```jsonssh-keygen -t rsa #使用rsa加密 ssh-keygen - 生成
tabbar只显示图片和自定义图片高度 只显示图片/** // UIEdgeInsetsMake top 以底部为基准,数值越大,越压缩 // UIEdgeInsetsMake bottom 以顶部为基准 数值越大,越压缩 // 若需要往上移动 (top为负数,bottom未正,取值一样)(-value,0,value,0) // 若需要往下移动 (top为正数,bottom未负,取值一样)(value,0,-value,0) */ ViewControllerSecond *
新建.gitignore文件 指定部分文件不上传远程git 新建.gitignore在.git文件的同级目录下新建 .gitignore文件文件内容怎么编辑(https://github.com/github/gitignore)比如xcode -oc# Created by https://www.gitignore.io/api/xcode### Xcode #### Xcode## gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C
笔记_js_array 文章目录数组创建splice()fill()findIndex复制数组将数组元素合成一个字符串some数组创建let arr1 = new Array("hello");console.log(arr1);// ------需要注意:Array()括号中只有一个参数时,字符串和数值会代表意义会不一样----------------------//let arr2 = new Array(5);console.log("--->" + arr2);//只是分配了5个单位的内存给arr2
笔记记录-js_string_2 基本字符串和字符串对象1.基本字符串: 1.字符串字面量 (通过单引号或双引号定义) 2.直接调用 String 方法(没有通过 new 生成字符串对象实例)的字符串 2.JS会自动将基本字符串`转换`为字符串对象3.什么时候转换? 当基本字符串需要调用一个字符串对象才有的方法或者查询值的时候(基本字符串是没有这些方法的)字符串对象------转------>基本字符串// valueOf 将字符串对象转换为其对应的基本字符串let s2 = new String("2 +
笔记记录-js_string 常用string方法// console.log(action1());function action1() { // 字符串 var str = "javascript"; console.log("length属性:" + str.length); console.log("字符串指定位置字符:" + str.charAt(str)); console.log("字符串指定字符所在位置:" + str.indexOf('e')); console.lo
iOS14,UIDatePicker高度变小无法滚动 先设置style,再设置frameif (@available(iOS 13.4, *)) { _datePicker.preferredDatePickerStyle = UIDatePickerStyleWheels;} else { // Fallback on earlier versions}_datePicker.frame = CGRectMake(...);
js_const_let_var /*lengthcharAtindexOfsubstringslicesubstrreplacesplittrimsearchmatch*/function action1() { // 字符串 var str = "javascript"; console.log("length属性:" + str.length); console.log("字符串指定位置字符:" + str.charAt(str)); console.log("字符串指
xcode 安装 oneDart theme { let str:String? = "take me to your heart" let str2:String = str! // 强制解析时必须有值(如果可选值没有值时,强制解包会出现编译进行时异常crash) //...
动态更换App icon图标 更改ios app 图标//动态更换图标 if ([UIApplication sharedApplication].supportsAlternateIcons) { [[UIApplication sharedApplication] setAlternateIconName:@"newImage" completionHandler:^(NSError * _Nul...