By XploreAR
on Mon, 06/16/2014 - 05:04
I have EAGLView to render for overlay. I'm displaying images in overlay of EAGLView then taking openGL screenshot & UIScreenshot finally combine both and save to album then sharing to social using sharekit. But the image is saving to photo album but the sharekit is not working, application crashing with EXC_BAD_ACCESS(code=1,address=0xcc)
in the line of [actionSheet showInView:self];
- (BOOL)presentFramebuffer
{
if (_takePhotoFlag)
{
UIImage *glImage = [self glToUIImage];
self.screensht = [self createSavableImage:glImage];
SHKItem *item = [SHKItem image:self.screensht title:@"Featherlite"];
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
[actionSheet showInView:self];
}
}
-(void)save:(id)sender{
_takePhotoFlag = YES;
}
- (id)initWithFrame:(CGRect)frame appSession:(SampleApplicationSession *) app
{
self = [super initWithFrame:frame];
if (self) {
_takePhotoFlag = NO;
}
}