The operation of the layer:
1. to layer background image:
myView . Layer . contents = ( ID ) [ UIImage imageNamed : @ "view_BG.png" ]. CGImage ;
2. the border layer set to round-pin
myWebView. Layer . cornerRadius = 8 ;
myWebView. Layer . masksToBounds = YES ;
3. to add a colored border layer
myWebView. Layer . borderWidth = 5 ;
myWebView. Layer . borderColor = [[ UIColor colorWithRed : 0.52 Green : 0.09 Blue : 0.07 alpha : 1 ] CGColor ];
No comments:
Post a Comment