title: Ios- Ipad- UicollectionViewCell- icon on a cell- how to add tap gesture to icon in xcode 5?
body: <p>I have used a collection view cell to display multiple images. Then each image will have a small icon on top right. My question is how to add a tap gesture to a small icon that's on top right of each cell image. </p>
  
  <p>My code:</p>
  
  <pre><code>UITapGestureRecognizer *tapped = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(projectSetting:)];
  _projectSettingIconButton = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"login-settings.png"]]; 
  _projectSettingIconButton.frame = CGRectMake(95, 3, 21, 21); 
  [_projectSettingIconButton addGestureRecognizer:tapped]; 
  [cell addSubview:_projectSettingIconButton]; 
  </code></pre>