I’m trying to debug a point in my app where it will save the image from the imagescrollview to photoalbum based on longpressgesture.
I set a breakpoint in the save photo method.
When I start the application and hit the save photo button it should stop right there but it never stops at the breakpoint and also not saving photo to photo album
What can I do so that the debugger stops at my breakpoint added?
-(void)savePhoto{
CGPoint location = [gesture locationInView:_imageView];
if (CGRectContainsPoint(_imageView.frame, location)){
UIImageWriteToSavedPhotosAlbum(_image, self, @selector(image: didFinishSavingWithError:contextInfo:), nil);
}
}
Have a breakpoint at UIImageWriteToSavedPhotosAlbum statement. Tried breakpoint at cgpoint location and if statement and breakpoint is stopping at those points but not at UIImageWriteToSavedPhotosAlbum
Appreciate all suggestions.
Thanks
Sounds like the if condition evaluates to false
Add a log before the if statement to check if it evaluates to 0 or 1