Are you saying you want the selection of the cell to trigger the display of the view for the second controller? If so, your code is not even trying to do that.
Doesn't seem to work how? Do you have any compile-time errors/ warnings? How about at run-time? Is it crashing? Are you certain viewWillAppear: is even being called? How are you causing the view for controller 2 to appear? What is the relationship between the two controllers? Master-detail?
Post your code. Describing code does nothing. We can't debug descriptions. Even if we could, the translation from description to code could be incorrect.