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

Infinite loop when we reload leftmenu tableview #175

Closed
bejgumshirisha opened this issue Nov 5, 2019 · 2 comments
Closed

Infinite loop when we reload leftmenu tableview #175

bejgumshirisha opened this issue Nov 5, 2019 · 2 comments

Comments

@bejgumshirisha
Copy link

To reload the content in leftside tableview. I added tableview reload in viewWillLayoutSubviews method but it it going to infinte loop.Any solution for left menu content reload

@iDevelopper
Copy link

I don't know the framework but I guess you can achieve that in a delegate method like:

- (void)willShowLeftView:(nonnull UIView *)leftView sideMenuController:(nonnull LGSideMenuController *)sideMenuController;

@Friend-LGA
Copy link
Owner

It is not a good idea to reload data inside viewWillLayoutSubviews method. Inside this method you should update layout of your views.
You should reload data of your tableView only when it is needed for your needs, outside of render pipeline.

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

3 participants