平铺文理+拉伸按钮图片

 UIColor *circleColorPattern = [UIColor colorWithPatternImage:

                                   [UIImage imageNamed:@"node.png"]];

    [self.view setBackgroundColor:circleColorPattern];

    

    

    UIImage *buttonBackgroundImage = [[UIImage imageNamed:@"btnImage.jpg"]

                                      resizableImageWithCapInsets:UIEdgeInsetsMake(0,13,0,13)];

    [self.m_Btn setBackgroundImage:buttonBackgroundImage

                      forState:UIControlStateNormal];


你可能感兴趣的:(图片)