mercredi 6 mai 2015

How to store Whole index path, previous,before previous and current selected index path value to the NSArray within didSelectRowAtIndexPath: methods

Problem :

I developing Quiz apps.In apps there are likes 5 questions in one tableview Questions get from plist.whenever,i have selecting the questions choice in tableview it showing,current selected index_path value.

But i wants whole questions choices likes from 1 to 5 selected index_path in the array.

My Code :

  • (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

    // what is that code,....?

}

i wants :

NSLog(@"whole index_path : %@",array name);

output:

whole index_path : 0 1 0 2 1

Can Any One help me??? :-) Thanks Advance

Aucun commentaire:

Enregistrer un commentaire