代码改变世界

swift 判断字符串长度

2016-12-20 10:09 by Y了个J, 1786 阅读, 0 推荐, 收藏, 编辑
摘要:projectName.lengthOfBytes(using: String.Encoding(rawValue: String.Encoding.utf16.rawValue)) > 0 阅读全文

Swift 写纯洁的TableviewCell

2016-12-14 10:09 by Y了个J, 232 阅读, 0 推荐, 收藏, 编辑
摘要:let initIdentifier = "员工" var cell = tableView.dequeueReusableCell(withIdentifier: initIdentifier); if (cell == nil) { cell = UITableViewCell(style: U 阅读全文

iPad Pro分辨率

2016-11-14 15:44 by Y了个J, 184 阅读, 0 推荐, 收藏, 编辑
摘要:iPad Pro分辨率 为 2732 x 2048 阅读全文

在设置app icon时的问题

2016-11-14 10:08 by Y了个J, 210 阅读, 0 推荐, 收藏, 编辑
摘要:APP 运行时遇到 the app icon set named appicon did not have any applicable content 是应该考虑是icon可能偏大 阅读全文

Unable to the boot Simulator ! Mac开机现“CoreTelephony Trace File Error”,

2016-11-01 13:07 by Y了个J, 608 阅读, 0 推荐, 收藏, 编辑
摘要:OS X升级到El Capitan之后,提供一个跟安全相关的模式叫SIP(System Integrity Protection),又称rootless mode,这个新功能在強化OS X的安全性,它禁止让软件以 root 身份来在 Mac 上运行,在升级到 OS X 10.11 中或许你就会看到部 阅读全文

UIBUTTON titlelabel.text 不显示

2016-09-22 15:23 by Y了个J, 758 阅读, 0 推荐, 收藏, 编辑
摘要:button.titlelabel.text=@"查询";设置后运行发现没事正确显示。 查找后原来UIButton分状态的,textLabel不管用 [button setTitle:@"查 询" forState:UIControlStateNormal]; 需要设置title和相应的state。 阅读全文

xcodeproj cannot be opened because the project file cannot be parsed.

2016-09-13 15:03 by Y了个J, 147 阅读, 0 推荐, 收藏, 编辑
摘要:网上找 文本编辑器修改 阅读全文

遇到 Line 21: StartTag: invalid element name ios

2016-09-13 14:51 by Y了个J, 851 阅读, 0 推荐, 收藏, 编辑
摘要:打开这个的storyboard 文本编辑打开修改里面有冲突的部分 阅读全文

字典

2016-08-10 16:43 by Y了个J, 105 阅读, 0 推荐, 收藏, 编辑
摘要:@{key:value} 阅读全文

sync_object not in ('TBL_Territory')

2016-08-06 16:38 by Y了个J, 118 阅读, 0 推荐, 收藏, 编辑
摘要:sync_objec 不包含TBL_Territory这个字段 阅读全文