Copy-and-paste this over the last few lines of application:didFinishLaunchingWithOptions:
UIButton *debugButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
debugButton.frame = CGRectMake(0.f, 20.f, 44.f, 44.f);
[debugButton addTarget:self action:@selector(didPressDebugButton) forControlEvents:UIControlEventTouchUpInside];
[self.window addSubview:debugButton];
return YES;
}
- (void)didPressDebugButton
{
NSLog(@"boink!");
}