Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (self.searchDisplayController.searchResultsTableView.indexPathForSelectedRow == nil) {
- UIAlertView *alert = [[UIAlertView alloc]
- initWithTitle: @"Select a User"
- message: @"Please select a user to send a message to."
- delegate: nil
- cancelButtonTitle:@"OK"
- otherButtonTitles:nil];
- [alert show];
- }
- if(_usersTable.indexPathForSelectedRow == nil) {
- UIAlertView *alert = [[UIAlertView alloc]
- initWithTitle: @"Select a User"
- message: @"Please select a user to send a message to."
- delegate: nil
- cancelButtonTitle:@"OK"
- otherButtonTitles:nil];
- [alert show];
- } else {
- //DO some stuff
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement