The storyboard from the table and its disclosure button

I want to switch from a table to two different monitors by clicking on a cell or clicking on the "Detailed disclosure" button.

If I ctrl-drag the second segue, the first will be deleted. What am I doing wrong?

Tnx mica

+4
source share
1 answer

I don’t think you can associate a particular disclosure button with segue. My storyboards are extremely software b / c. I use many custom CGRect, etc.

so I usually use something like this:

-(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath { [self performSegueWithIdentifier:@"ViewControllerIdentifer" sender:self]; } 

for reference, this is a very good example of a project on storyboards and tabular reviews. there is also a link to the project below.

http://www.raywenderlich.com/5191/beginning-storyboards-in-ios-5-part-2

+16
source

Source: https://habr.com/ru/post/1393621/


All Articles