以UIButton为例,创建一个类,继承于UIButton/*页面的创建用storyboard*/.h文件@interfacePTSRecommendButton:UIButton-(void)viewTransform;@end.m文件@implementationPTSRecommendButton-(void)viewTransform{//[self.layersetAnchorPoint:CGPointMake(1,0.5)];CGRectbtnFrame=self.frame...
查看全文