[已解决]Swift中的delegate中的函数如何定义和实现
crifan 9年前 (2015-10-14) 2758浏览 0评论
[背景] 折腾: [已解决]如何把Object-C中的protocol和delegate转为Swift代码 期间,看到之前OC代码: - (BOOL)mh_tabBarController:(MHTabBarController *)tabBarCo...
crifan 9年前 (2015-10-14) 2758浏览 0评论
[背景] 折腾: [已解决]如何把Object-C中的protocol和delegate转为Swift代码 期间,看到之前OC代码: - (BOOL)mh_tabBarController:(MHTabBarController *)tabBarCo...
crifan 9年前 (2015-10-14) 3125浏览 0评论
[问题] 已有OC代码: MHTabBarController.h @protocol MHTabBarControllerDelegate; /* * A custom tab bar container view controller. It...
crifan 9年前 (2015-10-14) 2514浏览 0评论
[问题] 将OC代码转换为swift期间,代码: func setSelectedIndex(newSelectedIndex:UInt, animated:BOOL) { 出错: Use of undeclared type ̵...
crifan 9年前 (2015-10-14) 1646浏览 0评论
[问题] 将OC代码转换为swift期间,代码: func setSelectedIndex(newSelectedIndex:UInt, animated:BOOL) { 出错: Use of undeclared type ̵...
crifan 9年前 (2015-10-12) 4692浏览 0评论
[问题] 从OC转换为swift的代码: var selectedViewController:UIViewController? var viewControllers = [UIViewController]() { ...
crifan 9年前 (2015-10-12) 2777浏览 0评论
[问题] swift代码: class RecordTabBarController : UIViewController { var viewControllers = [UIViewController]() { ...
crifan 9年前 (2015-10-12) 5739浏览 0评论
[背景] 想要把OC代码: NSAssert(newViewControllers.count >= 2, "MHTabBarController requires at least two view controllers&quo...
crifan 9年前 (2015-10-12) 3132浏览 0评论
[背景] 折腾: [已解决]Swift代码出错:Cannot invoke initializer for type [UIViewController] with an argument list of type (() -> ()) 期间...
crifan 9年前 (2015-10-11) 3716浏览 0评论
[背景] 折腾: [已解决]Swift代码出错:Cannot invoke initializer for type [UIViewController] with an argument list of type (() -> ()) 期...
crifan 9年前 (2015-10-11) 6584浏览 0评论
[背景] 折腾: [已解决]Swift代码出错:Method setViewControllers with Objective-C selector setViewControllers: conflicts with setter for v...