图片翻转

                        UIImage *img=[UIImage imageNamed:@"sina.png"];
                       UIImage * img1 = [UIImage imageWithCGImage:img.CGImage scale:img.scale orientation:UIImageOrientationRightMirrored];
//                        UIImage *closeImg1 = [UIImage imageWithCGImage:closeImg.CGImage scale: closeImg.scale orientation:UIImageOrientationRightMirrored];
                        
                        [btn1 setBackgroundImage:img1 forState:UIControlStateNormal];

猜你喜欢

转载自wang-peng1.iteye.com/blog/1848031
今日推荐