Skip to content

Instantly share code, notes, and snippets.

@LutherBaker
Last active August 29, 2015 14:01
Show Gist options
  • Save LutherBaker/b8cfbafbb60212873c88 to your computer and use it in GitHub Desktop.
Save LutherBaker/b8cfbafbb60212873c88 to your computer and use it in GitHub Desktop.
iOS Cheatsheet
//
// AppDelegate
//
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UIViewController *root = nil; // replace this line!
self.window.rootViewController = root;
[self.window makeKeyAndVisible];
return YES;
}

In the storyboard, add a table view to a plain old view controller (not a table view controller). Anchor the top of it to the bottom of the status bar. Notice in the document outline that the table view is NOT the root view for the controller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment