-(BOOL)TakePhoto:(NSString*)imagePath { m_metaioSDK->requestScreenshot([imagePath UTF8String], self.glView->defaultFramebuffer, self.glView->colorRenderbuffer); return YES; } -(void) onScreenshotSaved:(NSString*) filepath { UIImage *image = [UIImage imageWithContentsOfFile:filepath]; UIImageWriteToSavedPhotosAlbum(image, self, nil, NULL); UIAlertView *alert = [[UIAlertView alloc]initWithTitle:nil message:@"拍照成功" delegate:self cancelButtonTitle:@"OK" otherButtonTitles: nil]; [alert show]; }