240 发简信
IP属地:湖北
  • 2018-10-18枚举

    import UIKit enumPerson { casezhangsan caselisi casewangwu } enumP...

  • 2018-10-11数组

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

  • 2018-10-11循环语句

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

  • 2018-10-11控制流

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

  • 闭包

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

  • 2018-10-11字典

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

  • 2018-10-11可变函数

    //c //int sum(int a, int b) //oc //-(int) sum:(int)a:(int)b //Swift //fu...

  • 2018-10-11元组

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

  • iOS 建立地区

    #import "ViewController.h" @interface ViewController () @property(nonato...