Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crash when there's another tableview in controller #45

Open
shraddha-patel-1891 opened this issue Jun 24, 2019 · 0 comments
Open

App crash when there's another tableview in controller #45

shraddha-patel-1891 opened this issue Jun 24, 2019 · 0 comments

Comments

@shraddha-patel-1891
Copy link

shraddha-patel-1891 commented Jun 24, 2019

i had to use context menu on multiple screens so i made

@interface navigationMenu : UIViewController <UITableViewDelegate,UITableViewDataSource,YALContextMenuTableViewDelegate>

and added all menu code in this controller's m file.didn't make xib file for this controller file.

and where i needed to use it, i used
@interface UIMyAppointmentViewController : navigationMenu

and call the action button of navigationMenu from child controllers to show/init menu.it works fine in controllers without tableview of there own but crashes the app when there's a other tableview in them.issue is you are getting cell from visible cells function of tableview which returns the controller's own cell not the one belonging to menu. and try to call functions defined in YALContextMenuCell protocol and app crashes as other cells are not implementing this function.

any solution to this???

i have applied many solutions but current view controller data source and delegate reference not remove when load context menu again and tableview datasouce as well delegate method call of child view controller not parent view controller.

please help me it's urgent.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant