这个语速挺适合边看视频边敲代码,说得也很清晰,只看不敲的可以去APP调语速,免费可以学到这么好的东西就知足吧
2015-11-26
数组的方法吧
var str4 = "-"
var NumberArray = ["1","2","3"]
NumberArray.joinWithSeparator(str4)
var str4 = "-"
var NumberArray = ["1","2","3"]
NumberArray.joinWithSeparator(str4)
2015-11-24
var strArr10 = ["a", "b" ,"ba","bcd","ab","abcd"]
strArr10.sort({(s1:String,s2:String)->Bool in
// if countElements(s1) != countElements(s2)
if s1.characters.count != s2.characters.count
{
return s1.characters.count < s2.characters.count
}
return s1 < s2
strArr10.sort({(s1:String,s2:String)->Bool in
// if countElements(s1) != countElements(s2)
if s1.characters.count != s2.characters.count
{
return s1.characters.count < s2.characters.count
}
return s1 < s2
2015-11-16