swift UIAlertController UIAlertAction设置 font,color
摘要:let alert = UIAlertController(title: "", message: "", preferredStyle: UIAlertController.Style.alert) ///标题颜色/字体 let titleAtt = NSMutableAttributedStri
阅读全文
posted @
2020-07-28 14:34
懂事长qingzZ
阅读(1314)
推荐(0) 编辑
swift uibutton 图片在右, 文字在左
摘要:btn.semanticContentAttribute = .forceRightToLeft 查了下资料 semanticContentAttribute 是反转 ,即描述视图的内容,用来确定视图之间切换时应翻转从左到右和从右到左的布局 最低支持到9.0 参考链接:https://www.jia
阅读全文
posted @
2020-07-27 10:40
懂事长qingzZ
阅读(967)
推荐(0) 编辑
Swift数组的sort、filter、forEach、map等方法,$的使用
摘要:https://blog.csdn.net/qq_25639809/article/details/85004258
阅读全文
posted @
2020-07-16 10:05
懂事长qingzZ
阅读(255)
推荐(0) 编辑
Swift UIStatusBarStyle 设置
摘要:参考: https://www.jianshu.com/p/e57715cf2f8a 一. 设置全局控制器状态栏样式 1.取消控制器管理状态栏样式,在Supporting Files下的Info.plist添加一个属性设置 value: NO``` 
推荐(0) 编辑
Mac 退出终端编辑
摘要:Mac 终端退出编辑 ctrl + c shift + :
阅读全文
posted @
2020-07-01 18:36
懂事长qingzZ
阅读(720)
推荐(0) 编辑