Created
July 13, 2012 04:55
-
-
Save dbaldwin/3102801 to your computer and use it in GitHub Desktop.
iOS5 snippet for calling a welcome screen segue when a UITableView has 0 items in it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section | |
{ | |
if(_objects.count == 0) { | |
[self performSegueWithIdentifier: @"welcomeSegue" sender: self]; | |
} | |
return _objects.count; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment