摘要: 1.Int或Double转字符串 let x = 20 let y = "\(x)" let z = String(x) 2.Double转Int(去掉小数点后面的) Int(1.9) 3.Int转Double Double(1) 4.向上转型 class A{ //A父类 } class B: A 阅读全文
posted @ 2023-09-05 18:02 临易 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 1.获取用户当前所在的位置 在infi中点击加号,选择权限:当用户使用app的时候获取位置权限. 填写使用位置权限的目的. 2.获取用户的经纬度. ViewController: import UIKit import CoreLocation class ViewController: UIVie 阅读全文
posted @ 2023-09-05 17:34 临易 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 引入了一个新的cocoapods依赖之后,启动运行,显示Fail,报错File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/li 阅读全文
posted @ 2023-09-05 15:17 临易 阅读(665) 评论(0) 推荐(0) 编辑
摘要: 1.进入Android Studio官网 https://developer.android.google.cn/studio 2.点击下载Android Studio. 3.将说明拉到最下方,选择Mac With Apple Chip.苹果芯片选择Apple Chip,如果是Intel芯片可以选择 阅读全文
posted @ 2023-09-05 11:36 临易 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: 终端代理命令: 小飞机:export https_proxy=http://127.0.0.1:1087 回车export http_proxy=http://127.0.0.1:1087 回车 Clash:export https_proxy=http://127.0.0.1:7890 回车exp 阅读全文
posted @ 2023-09-05 10:31 临易 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 在终端命令行安装cocoapods时,可能出现如下问题: Error installing cocoapods: The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1 阅读全文
posted @ 2023-09-05 09:51 临易 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 问题描述: 通过Homebrew安装cocoapods时,输入命令行 brew install cocoapods 出现如下报错: zsh: command not found: brew zsh:找不到命令:brew 问题解决: 使用以下命令,重新安装Homebrew. /bin/zsh -c " 阅读全文
posted @ 2023-09-05 09:51 临易 阅读(905) 评论(0) 推荐(0) 编辑