So, I just did a quick test and found interesting results.
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; [button setTitle:@"Hello" forState:UIControlStateNormal]; [button addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside]; button.frame = CGRectMake(100, 100, 100, 100); [self.window addSubview:button];
Fingerprints: button clicked UIRoundedRectButton
So it seems that this should be possible ... In truth, I ran into some UIButton subclassing UIButton to get a complete example of work, but that seems promising. :)
source share