I am adding an UITapGestureRecognizer on an image for content extension. it is working when phone is unlocked but when phone is locked, tap doesn't prompt the lock screen. this is the code -
UITapGestureRecognizer *selectImageTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSelectImage:)];
[selectImageTap setCancelsTouchesInView:NO];
[self.imageView addGestureRecognizer:selectImageTap];
self.imageView.userInteractionEnabled = YES;