swift 自定义view的写法(内有仿照OC中block的 swift闭包的调用)
UIButtonbutton.frame=CGRectMakebutton.backgroundColor=UIColor.lightTextColor()button.setTitlebutton.addTarget;background-color:inherit">action:Selector,0);background-color:inherit">forControlEvents:UIControlEvents.TouchUpInside)button.layer.cornerRadius=5