hello i am wondering how its possible to load a nib depending on the string selected from the cell title. here is the code that i am using however i cant get any results..
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
//FinalViewController *anotherViewController = [[FinalViewController alloc] initWithNibName:@"FinalViewController" bundle:nil];
if ([[tableView cellForRowAtIndexPath: indexPath].textLabel.text isEqualToString: @"Ath 1"])
{
LastViewController *lastViewController = [[LastViewController alloc]
initWithNibName:@"LastViewController" bundle:nil];
i dont understand why this doesnt work?