240 发简信
IP属地:广西
  • 2018-10-18枚举

    import UIKit enumPerson { casezhangsan caselisi casewangwu } enumPerson2 { case...

  • 2018-10-11数组

    var str = "Hello, playground" //1.定义方式 vararray1: [String] = [String]()//Array vararray...

  • 2018-10-11循环语句

    import UIKit var str = "Hello, playground" //item每次遍历的那个索引对应的值,自动赋值 //items遍历的那个集合 fori...

  • 2018-10-11控制流

    vara =10 if(a==10) { print("Hello World") } if(a>10) { } else { print("else") } va...

  • 闭包

    funcsquare(number:Int) ->Int { returnnumber * number } square(number:10) letsquareClo...

  • 2018-10-11字典

    //{@"id":@"123456",@"name":@"zhangsan"}[] //定义与初始化 var dic1:[String : String] = ["id":"...

  • 2018-10-11可变函数

    //c //int sum(int a, int b) //oc //-(int) sum:(int)a:(int)b //Swift //func 函数名(参数列表)->返...

  • 2018-10-11元组

    vara:UInt=10 letmaxValue =Int32.max letminValue =UInt8.min varb:Int=-10 var c:Double = ...

  • iOS 建立地区

    #import "ViewController.h" @interface ViewController () @property(nonatomic,strong)UIPi...