[已解决]如何把Object-C中的protocol和delegate转为Swift代码
crifan 9年前 (2015-10-14) 3126浏览 0评论
[问题] 已有OC代码: MHTabBarController.h @protocol MHTabBarControllerDelegate; /* * A custom tab bar container view controller. It...
工作相关的技术文章
crifan 9年前 (2015-10-14) 3126浏览 0评论
[问题] 已有OC代码: MHTabBarController.h @protocol MHTabBarControllerDelegate; /* * A custom tab bar container view controller. It...
crifan 9年前 (2015-10-14) 2517浏览 0评论
[问题] 将OC代码转换为swift期间,代码: func setSelectedIndex(newSelectedIndex:UInt, animated:BOOL) { 出错: Use of undeclared type ̵...
crifan 9年前 (2015-10-14) 1651浏览 0评论
[问题] 将OC代码转换为swift期间,代码: func setSelectedIndex(newSelectedIndex:UInt, animated:BOOL) { 出错: Use of undeclared type ̵...
crifan 9年前 (2015-10-14) 3834浏览 0评论
[背景] 折腾: [暂未解决]mac中系统进程kernel_task太耗内存 期间,想要复制出,一个只读文件: 的文件名。 [折腾过程] 1.finder中:当文件是只读无法修改时,连拷贝个文件名,都没法直接拷贝 因为试了试: 直接右键,试了很多个...
crifan 9年前 (2015-10-12) 4694浏览 0评论
[问题] 从OC转换为swift的代码: var selectedViewController:UIViewController? var viewControllers = [UIViewController]() { ...
crifan 9年前 (2015-10-12) 2787浏览 0评论
[问题] swift代码: class RecordTabBarController : UIViewController { var viewControllers = [UIViewController]() { ...
crifan 9年前 (2015-10-12) 5745浏览 0评论
[背景] 想要把OC代码: NSAssert(newViewControllers.count >= 2, "MHTabBarController requires at least two view controllers&quo...
crifan 9年前 (2015-10-12) 5409浏览 0评论
[问题] mac使用期间,发现有些程序运行不流畅,有点点卡顿时, 去看 活动监视器 中 内存占用中, 有个kernel_task 占用了1G多的内存: 想要搞清楚: 这个kernel_task是个什么东西 占用了1.2G内存,是否属于正常现象? 注...
crifan 9年前 (2015-10-12) 1981浏览 0评论
1.手势 “ 使用触摸手势。 使用手势以一种更自然的方式与您的 Mac 交互。 获取关于手势的更多帮助 滚动 使用双指上下拖移以在文稿、网页等地方滚动浏览。 导航 使用双指左右轻扫 — 就像在书中翻页一...
crifan 9年前 (2015-10-12) 3133浏览 0评论
[背景] 折腾: [已解决]Swift代码出错:Cannot invoke initializer for type [UIViewController] with an argument list of type (() -> ()) 期间...