Skip to content

Instantly share code, notes, and snippets.

@projectxcappe
Created November 30, 2011 22:57
Show Gist options
  • Save projectxcappe/1411633 to your computer and use it in GitHub Desktop.
Save projectxcappe/1411633 to your computer and use it in GitHub Desktop.
- (void)methodOne{
//This is the button created for the subview Ad
adView = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[adView setFrame:frame];
adView.backgroundColor = [UIColor greenColor];
adView.opaque = YES;
[adView setUserInteractionEnabled:YES];
[adView addTarget:self action:@selector(_adButtonTappedTLAdView:event:) forControlEvents:UIControlEventAllTouchEvents];
NSLog(@"adView %@", adView);
}
- (void)_adButtonTappedTLAdView:(id)sender event:(UIEvent *)e {
NSLog(@"Hello World");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment