- 博客(9)
- 收藏
- 关注
原创 安装RVM环境
$ curl -L https://get.rvm.io | bash -s stable$source ~/.rvm/scripts/rvm$ rvm -v
2020-02-25 17:00:18
947
原创 mac cocoa pods目录位置
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.8.4这里根据版本会有不同
2020-02-25 16:22:43
5483
原创 Thread 1: signal SIGABRT问题解决
解决办法是记住先前的操作,找到相关问题原因,比如控件关联。如图打开 Show the Connections inspector把相关联的Outlet叉掉:猜测:Thread 1: signal SIGABRT类型的错误,是某种具体的内部关联引发的错误,导致前后消息不匹配,最终传递到上层的thread的。...
2020-02-24 20:09:49
19518
原创 swift 首行缩进两个字符
let paraStyle01 = NSMutableParagraphStyle()paraStyle01.alignment = .left//对齐paraStyle01.headIndent = 0.0//行首缩进let emptylen:CGFloat = (cell?.textLabel?.font.pointSize)!*2paraStyle01.firstLineHead...
2020-02-21 09:39:36
319
原创 iOS模拟器不能输入中文
Command+K, 在软键盘上通过地球仪选择中文输入法(在应用里让输入框成为第一响应者,也就是引入输入模式),再Command+K,取消软键盘;Command+Shift+K,绑定电脑的键盘,完事收工....
2020-02-21 06:59:14
220
原创 Xcode 注释快捷键
一、单行、多行注释“command + /”,即“⌘ + /”。(如果是 Windows 键盘则为“Win键 + /”)二、注释文档把光标定位到需要添加注释文档的对象起始行,或上方的空白行。按下“command + Option + /”,即“⌘ + ⌥ + /”。(如果是 Windows 键盘则为“Win键 + ALT + /”)...
2020-02-19 08:37:38
4590
原创 Swift 字符串是否包含某子串或字符
func hasPrefix(String)Returns a Boolean value indicating whether the string begins with the specified prefix.func hasSuffix(String)Returns a Boolean value indicating whether the string ends with ...
2020-02-18 18:03:08
6992
原创 Swift4 获取String子字符串
extension String { //获取子字符串 func substingInRange(_ r: Range<Int>) -> String? { if r.lowerBound < 0 || r.upperBound > self.count { return nil } ...
2020-02-18 15:47:53
1379
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人