let tabBarTitles:NSArray = ["数据1","数据2","数据3"] for tabBarTitleTxt in tabBarTitles{ print(tabBarTitleTxt); }
该方法等于
NSArray *tabBarTitles = @[@"数据1",@"数据2",@"数据3"]; for(NSString *tabBarTitleTxt in tabBarTitles){ NSLog("%@",tabBarTitleTxt); }
数据
let tabBarTitles:NSArray = ["数据1","数据2","数据3"] for tabBarTitleTxt in tabBarTitles{ print(tabBarTitleTxt); }
该方法等于
NSArray *tabBarTitles = @[@"数据1",@"数据2",@"数据3"]; for(NSString *tabBarTitleTxt in tabBarTitles){ NSLog("%@",tabBarTitleTxt); }
数据
本文标题:swift object对照
本文链接:https://www.haomeiwen.com/subject/wwdemxtx.html
网友评论