romaonthego / RESideMenu

iOS 7/8 style side menu with parallax effect.
MIT License
7.09k stars 1.35k forks source link

Tableview menu crash #15

Closed AndrexOfficial closed 11 years ago

AndrexOfficial commented 11 years ago

Hi, I have a tableview called RootViewController and it loads my rss feeds. The problem comes up when I tap the button to go back to the menu, because the app crash immediately.

Here is my console log:

2013-07-20 15:50:13.549 RESideMenuExample[4349:907] Finished Parsing 2013-07-20 15:50:15.255 RESideMenuExample[4349:907] -[RootViewController showMenu]: unrecognized selector sent to instance 0xa42b600 2013-07-20 15:50:15.256 RESideMenuExample[4349:907] *\ Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RootViewController showMenu]: unrecognized selector sent to instance 0xa42b600'

And here is my RootViewController.h file:

import <UIKit/UIKit.h>

import "MWFeedParser.h"

import "Config.h"

import "PullToRefreshTableViewController.h"

import "QuartzCore/CALayer.h"

import "HJObjManager.h"

import "HJManagedImageV.h"

import "LoadingView.h"

import "ShareTools.h"

import "LocalData.h"

import "RootViewController1.h"

import "RESideMenu.h"

@interface RootViewController : PullToRefreshTableViewController <UIScrollViewDelegate,UITableViewDataSource, UITableViewDelegate,MWFeedParserDelegate,UIActionSheetDelegate> {

UITableView *_tableView;
NSMutableArray *_datasource;

LoadingView *loadingView;

// Parsing
MWFeedParser *feedParser;
NSMutableArray *parsedItems;

// Displaying
NSArray *itemsToDisplay;
NSDateFormatter *formatter;

//Async image
HJObjManager* objMan;

UIImage *imageinside;

//Sharing Cell Button
ShareTools *sharing;

}

// Properties @property (nonatomic, retain) NSArray itemsToDisplay; @property (nonatomic, retain) LoadingView loadingView;

@end

How can I fix this problem? I think that the control can't handle Tableviews

romaonthego commented 11 years ago

This is your problem: -[RootViewController showMenu]: unrecognized selector sent to instance 0xa42b600

AndrexOfficial commented 11 years ago

How can I fix it?

romaonthego commented 11 years ago

The problem is in your code and it's not an issue of RESideMenu. You need to check if you have showMenu method in your root view controller.