Refresh the view in UIViewController


/ Published in: Objective C
Save to your folder(s)

When you come back to the parent view controller after visiting controller and want to refresh the content, set the view to nil and then load it.


Copy this code and paste it in your HTML
  1. if ([self isViewLoaded]) {
  2. self.view=nil;
  3. [self viewDidLoad];
  4. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.