上一页 1 2 3 4 5 6 7 ··· 34 下一页
摘要: 反向传值是指将后续页面(2)得到的值传回首页(1). 1.在2页面代码中写protocol. protocol TodoTableViewControllerDelegate{ func didAdd(name: String) func didEdit(name: String) } 制定了一个名 阅读全文
posted @ 2023-09-12 14:40 临易 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1.制作新增界面UI 进入Main界面,选中当前页面,点击右下角,选择Navigation Controller.Navigation Controller是一个容器,用于控制页面跳转. 新建一个Table View Controller,作为跳转之后的页面. 选中Table View,将他的Con 阅读全文
posted @ 2023-09-11 17:30 临易 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1.创建新项目 为项目添加图标 2.将Table View Controller添加到界面中 将箭头移动到Table View上来,代表它是首页(根页面).选中ViewController,点击Delete,对它进行删除.将代码ViewController.swift也删除掉. 新建一个Cocoa 阅读全文
posted @ 2023-09-07 18:08 临易 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1.创建次页的controller class 在Main中选择次界面,点击左上方黄色的圈圈,将它的Custom Class中的class修改为QueryViewController. 将QueryViewController中自动生成的首页传值方法复制到ViewController中去.去掉注释符 阅读全文
posted @ 2023-09-06 17:39 临易 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 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 临易 阅读(1178) 评论(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) 编辑
上一页 1 2 3 4 5 6 7 ··· 34 下一页