Do this to pass data from A to B..Put this code in A implementation file to switch A to B..
B *b = [[B alloc]init];
b.clientlists = tempClientNameArray;
[self.navigationController pushViewController:b animated:YES];
if you not use navigationController to switch do below code
B *b = [[B alloc]init];
b.clientlists = tempClientNameArray;
[self presentViewController:b animated:YES completion:nil];
I hope this will be helpful to you..