Skip to content

Instantly share code, notes, and snippets.

@nevyn
Created September 19, 2014 13:36
Show Gist options
  • Save nevyn/ecab0e814a06eaf7664d to your computer and use it in GitHub Desktop.
Save nevyn/ecab0e814a06eaf7664d to your computer and use it in GitHub Desktop.
- (BOOL)canBecomeFirstResponder
{
return NO;
}
- (BOOL)becomeFirstResponder
{
return NO;
}
- (void)makeKeyWindow
{
// nop
}
- (void)makeKeyAndVisible
{
// nop
}
- (UIViewController *)rootViewController
{
UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow;
NSParameterAssert(keyWindow != self); // Triggers!!!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment