1. inout(传引用)
func test(inout size: CGSize) {
size = CGSizeMake(0,0)
}
///函数外调用
var size: CGSize!
test(&size)
2. UnsafeMutablePointer(传指针)
func test(size: UnsafeMutablePointer<CGSize>) {
size = CGSizeMake(0,0)
}
///函数外调用
var size: CGSize!
test(&size)