Save UIView 's Snapshot.

 
 
 
UIGraphicsBeginImageContext(myView.bounds.size);
            [myView.layer renderInContext:UIGraphicsGetCurrentContext()];
            UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
            UIGraphicsEndImageContext();
posted @ 2009-03-07 16:11 小糊涂的超级blog Views(105) Comments(0) Edit 收藏