Error in didselect tableview on SWRevealViewController

when I was working with a dropdown using the class SWRevealViewController, it works correctly in the iphone simulator. But when I tried to run the iphone 5 on the device for testing, when I select the menu button, it displays the disable menu correctly, but, unfortunately, when selecting cells, it fails and shows the following error. But there are no such errors in the simulator.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

    indexPath = [[self tableView] indexPathForSelectedRow];
    if (indexPath.row==0) {

        [self performSegueWithIdentifier:@"home" sender:indexPath];

    }
  else if (indexPath.row==1) {

        [self performSegueWithIdentifier:@"cartme" sender:indexPath];

    }
   else {

        [self performSegueWithIdentifier:@"changelocation" sender:indexPath];

    }
}

Application termination due to the uncaught exception "NSInvalidArgumentException", reason: '- [SWRevealViewControllerSegue setDestinationContainmentContext:]: unrecognized selector sent to example 0x175c5f90'

please help me.

+4
2

, , segue "Custom" "Push"

+6

iOS.

, setDestinationContainmentContext - push segue. , segue Custom segue, push.

UIStoryboardSegue , .

/* Generated by RuntimeBrowser
   Image: /System/Library/Frameworks/UIKit.framework/UIKit
 */

@interface UIStoryboardPushSegueTemplate : UIStoryboardSegueTemplate {
    int  _destinationContainmentContext;
    int  _splitViewControllerIndex;
}

@property (nonatomic) int destinationContainmentContext;
@property (nonatomic) int splitViewControllerIndex;

- (int)destinationContainmentContext;
- (void)encodeWithCoder:(id)arg1;
- (id)initWithCoder:(id)arg1;
- (id /* block */)newDefaultPerformHandlerForSegue:(id)arg1;
- (void)setDestinationContainmentContext:(int)arg1;
- (void)setSplitViewControllerIndex:(int)arg1;
- (int)splitViewControllerIndex;

@end
0

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


All Articles