BetaCat's Blog

UIKit笔记

视图跳转 前往第二个视图 self.performSegue(withIdentifier: "填写Identifier", sender: self) 为第二个视图传值 Storyboard基本操作 快捷键操作 按住Option并拖拽元素可直接复制一份新的元素 按住Control并拖拽元素到代码

BetaCat_HA Published on 2022-11-14

在Apple Silicon上使用CocoaPods

在Apple Silicon上运行“pod install”时,可能会遇到以下错误提示: You may have encountered a bug in the Ruby interpreter or extension libraries. 若要解决,请阅读此文章

BetaCat_HA Published on 2022-07-18

Swift基本语法

“随机” random(in: lower … upper) or random(in: lower ..< upper) Int.random(in: 1…10) //从1到10随机取 Float.random(in: 1…10) Double.random(in: 1…10) Bool.r

BetaCat_HA Published on 2022-06-09