Combine multiple UIControlEvent items

Just OR them.

[self.button addTarget:self action:@selector(selector0:) forControlEvents:(UIControlEventTouchUpInside|UIControlEventTouchUpOutside)];

Leave a Reply

Your email address will not be published. Required fields are marked *