I have more than 3 views and also one window view ( pdfReader.xib nib file). I have a screen which is containing chapter name that is representing by table view. Whenever any row selected related chapeter is being load. I am controlling with different view. I want to know which view is being load in my “pdfReader.m” file. So i will load pdf file for reading. I am loading my view like below code.
I have written code of selection of row in
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
..........
.........
switch (indexPath.row) {
case 0:
NSLog(@"!!!!!!");
pdfReader.view = pdfReader.Chapter1;
break;
case 1:
//pdfReader.view = pdfReader.Chapter2;
break;
case 2:
//pdfReader.view = pdfReader.Chapter3;
break;
default:
break;
}
...
...
}
I want to which view are coming to load in pdfReader.m file.
you need to assign an tag value with each of your view. (When you create your views with
initmethod)Now modify your
didSelectRowAtIndexPathfunction