+ (UIImage *)resizableImage:(NSString *)name{
UIImage *normal = [UIImage imageNamed:name];
CGFloat w = normal.size.width * 0.5;
CGFloat h = normal.size.height * 0.7;
return [normal resizableImageWithCapInsets:UIEdgeInsetsMake(h, w, h, w)];
}
网友评论