hey,
In my table view i have the code
it opens a view controller with the name of the row in the table, which is great put if for one cell in my table i want it to go directly to send a email instead of going to a separate nib that has a button that says click to send email
In my table view i have the code
Code:
[tableView deselectRowAtIndexPath:indexPath animated:YES];
NSMutableString *rowName = [NSMutableString string];
[rowName setString:[[[tableView cellForRowAtIndexPath:indexPath] textLabel] text]];
[rowName replaceOccurrencesOfString:@" " withString:@"" options:0 range:NSMakeRange(0, [rowName length])];
[rowName appendFormat:@"ViewController"];
id newViewController = [[objc_getClass([rowName cStringUsingEncoding:NSUTF8StringEncoding]) alloc] init];
[self.navigationController pushViewController:newViewController animated:YES];
it opens a view controller with the name of the row in the table, which is great put if for one cell in my table i want it to go directly to send a email instead of going to a separate nib that has a button that says click to send email