当前位置:编程学习 > html/css >>

平铺文理+拉伸按钮图片

[html]
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]; 

 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];

 

补充:web前端 , HTML/CSS  ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,