开发者

Declare in .h file? iPhone SDK

How would I declare this code in the header file (.h) in iPhone SDK?

- (void) save {
    UIGraphicsBeginImageContext(self.view.frame.size); 
   开发者_StackOverflow社区 [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];

    UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
}


Have you tried this?

- (void) save;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜