UIButton * button;
self.button=[UIButton buttonWithType:UIButtonTypeRoundedRect];
//调用UIButton类方法创建button,buttonWithType方法创建UIButton对象为autorealease,需要retain一次该对象,否则自动释放池释放,则对象不存在,
// self.button则将UIButton创建的对象retain count 加1,接下来可以使用
UIButton * button;
self.button=[UIButton buttonWithType:UIButtonTypeRoundedRect];
//调用UIButton类方法创建button,buttonWithType方法创建UIButton对象为autorealease,需要retain一次该对象,否则自动释放池释放,则对象不存在,
// self.button则将UIButton创建的对象retain count 加1,接下来可以使用