We are trying to call the display button from a static library project using webview. integrating a static library with one view, we get an output construct. but when we tried to perform the action by pressing the "Button" button, it does not work.
Below is the code we used inside cocoa to touch the static library
UIButton *imageButton = [UIButton buttonWithType:UIButtonTypeCustom]; imageButton.frame = CGRectMake(self.view.frame.size.width-50, 10, 50, 50); [imageButton setImage:[UIImage imageNamed:@"close.png"] forState:UIControlStateNormal]; imageButton.adjustsImageWhenHighlighted = NO; // [imageButton addTarget:self action:@selector(close:) forControlEvents:UIControlEventTouchUpInside]; [imageButton addTarget:self action:@selector(hideWebViewBtn:) forControlEvents:UIControlEventTouchUpInside]; -(IBAction)hideWebViewBtn:(id)sender { NSLog(@"Hide Button clicked"); [self.adView removeFromSuperview]; self.adView = nil; return; }
Below is a screenshot that appears in the application with one view after integration and launch. As soon as I press the button, they donβt press it.

source share