I am trying to associate an event to a UIView. This is possible via touchesBegan method and via UIGestureRecognizer but both ways are unable to send an instance of same UIView as a parameter to event selector. Can somebody tell me a suitable way to achieve this.
Thanks!
EDIT
This is the way I tried to put a UIGestureRecognizer. That in turn, call expandActivity method. But this method will not be anyhow able to pass self.plannedActivityViewController.view as expandActivity parameter. My aim is to play with the properties of self.plannedActivityViewController.view.
UIGestureRecognizer *viewReongnizer = [[UIGestureRecognizer alloc] initWithTarget:self action:@selector(expandActivity)];
[self.plannedActivityViewController.view addGestureRecognizer:viewReongnizer];
Try this (note the : after expandActivity)
and then in expandActivity