crifan 9年前 (2015-10-15) 2897浏览 0评论
[背景]
折腾:
[已解决]如何把Object-C中的protocol和delegate转为Swift代码
期间,去把代码改为:
protocol RecordTabBarControllerDelegate {
func should...
crifan 9年前 (2015-10-15) 2004浏览 0评论
关于swift中的可选值,optional,带问号的变量
尝试去搞懂:
看了:
行走于 Swift 的世界中
解释的不错。 后来折腾: [已解决]Swift中如何获得一个变量的类型type 期间,对于代码:
print( "String((...
crifan 9年前 (2015-10-15) 7497浏览 0评论
[背景]
折腾:
[已解决]如何把Object-C中的protocol和delegate转为Swift代码
期间,需要去搞懂,最原始的ObjC的代码:
if ([self.delegate respondsToSelector:@selector(m...
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) 2515浏览 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) 2778浏览 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...