self.typeButton = [UIButtonbuttonWithType:UIButtonTypeCustom];
self.typeButton.frame =self.bounds;
self.typeButton.showsTouchWhenHighlighted =YES;
self.typeButton.titleLabel.textAlignment =GNTextAlignmentCenter;
UIColor* color = [UIColorcolorWithRed:136.f/255.fgreen:90.f/255.fblue:31.f/255.falpha:1.0f];
[self.typeButtonsetTitleColor:color forState:UIControlStateNormal];
self.typeButton.titleLabel.font = [UIFontsystemFontOfSize:10.0f];
self.typeButton.titleLabel.textAlignment =GNTextAlignmentCenter;
[self.typeButtonsetTitleEdgeInsets:UIEdgeInsetsMake(25.0f, -19.0f,10.0f,0.0f)];
[self.typeButtonsetImageEdgeInsets:UIEdgeInsetsMake(4.0f,12.0f, 20.0f,12.0f)];
[self.typeButtonaddTarget:self action:@selector(handleLandTipSelected:)
forControlEvents:UIControlEventTouchUpInside|UIControlEventTouchUpOutside];
[self addSubview:self.typeButton];
PS:查了下资料,UIControlEventTouchUpOutside 这个貌似是点击button后不放开,然后拖动到外面,接着才放开的事件