Declare in .h file? iPhone SDK

Posted by Henry D'Andrea on Stack Overflow See other posts from Stack Overflow or by Henry D'Andrea
Published on 2010-05-26T01:07:16Z Indexed on 2010/05/26 1:11 UTC
Read the original article Hit count: 454

Filed under:
|
|

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

  • (void) save { UIGraphicsBeginImageContext(self.view.frame.size);  [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];

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

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk