<code tips> Save UIView 's Snapshot.

 
 
 
UIGraphicsBeginImageContext(myView.bounds.size);
            [myView.layer renderInContext:UIGraphicsGetCurrentContext()];
            UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
            UIGraphicsEndImageContext();
posted @ 2009-03-07 16:11  小糊涂的超级blog  阅读(379)  评论(0编辑  收藏  举报