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