Question

I'm creating an iPhone app. In my main view, I have a subview. When I add a gesture recognizer to this subview, and I connect it to an action in my view controller, it works : the action method is called when the gesture is performed.

But when I connect my subview to an outlet in my view controller, suddenly, the gesture recognizer doesn't work anymore.

I have recreated this simple situation in a blank project, and here it works... Have you an idea about the origin of my problem please ?

Was it helpful?

Solution

So after reading your comment, I understand that the problem was indeed that you "messed" with the IBOutlet instance in your viewDidLoad as I presumed.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top