- edgesForExtendedLayout 用法:self.edgesForExtendedLayout = UIRectEdgeNone...
1.添加Objective-C File,(提示添加MySwift-Bridging-Header.h) @interface CouponVi...
3.可用SnapKit代替Masonry pod 'SnapKit', '~> 0.19.1' 0.20.0以后的会报错,没找到解决方法 imp...
1.同oc一样先有CocoaPods 2.关键在podfile中的写法 platform :ios, ‘8.0’ use_frameworks!...
实例方法 class A { var a = 0 func a_f() { a = 9 } } 方法的局部参数名称和外部参数名称 修改方法的外部...
enum Point { case North case South } var d = Point.North d = .South swit...
sort 函数 func backward(a:Int, b:Int) -> Bool { return a > b } let arr = [...
funcf_name(v_name:v_Class, ...) -> return_Class { //fun_content } var a ...
Array var someInts = [Int]() print("someInts is of type [Int] with \(som...