title: How to create a UIButton programmatically in iOS 14 in objective-C?
body: <p>I'm trying to create a UIButton programmatically in iOS 14 (beta 3) in objective-C.  This is what I've tried, but the UIAction handler is never called when I tap the button:</p>
  <pre><code>UIAction *tapAction = [UIAction actionWithHandler:^(UIAction* action){
       NSLog(@&quot;Never gets here&quot;);
  }];
  UIButton *btn = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 100, 100) primaryAction:tapAction];
  </code></pre>
  <p>Any ideas?</p>