Search code examples
iosios9uitapgesturerecognizer

UITapGestureRecognizer issue in iOS 9


I guys,

today I've updated my iPhone to iOS 9 and now have problems with a gesture recognizer. This is the error:

WARNING: A Gesture recognizer (; target= <(action=onVideoTap:, target=)>>) was setup in a storyboard/xib to be added to more than one view (->; layer = >) at a time, this was never allowed, and is now enforced. Beginning with iOS 9.0 it will be put in the first view it is loaded into.

I didn't have this problem with iOS8. The view contains a UIImageView and a TextView. The recognizer was dropped into the ImageView and has only referncing outlets to this view.

I don't really understand this issue. Can somebody help me? Thank you :)


Solution

  • Already fixed it. The storyboard is localized and in one language I assigned the the recognizer twice to the picture view. Somehow this seemed to cause troubles on the other storyboards too.