Во втором viewcontroller, в котором создается свойство переменной.
@property(nonatomic,readwrite)NSUInteger indexValue;
тогда
@synthesize indexValue= _indexValue;
Then After Создайте объект secondVctr в контроллере firstview;
#import "secondViewcontroller.h"
@interface firstviewcontroller : UIViewController
@property(nonatomic,strong)secondViewcontroller *objsecondViewcontroller;
@synthesize objsecondViewcontroller =_objsecondViewcontroller;
следующий код вводится в когда пользователь нажал на кнопку этого события.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
CountDown *controller = [[secondvctr alloc] initWithNibName:@"secondvctr" bundle:nil];
self.objsecondViewcontroller.indexValue=indexPath
[self.navigationController pushViewController:controller animated:YES];
}