Wednesday, 7 August 2013

Reload opened ModalViewController

Reload opened ModalViewController

I have opened ModalViewController. In this controller
scrollView+pageControl with data(in UITextView) from plist. I want create
opportunity remove some TextView. I remove data from plist, but I need to
reload view to update scrollView. How do it?
Actually went fine option, but this open new ModalViewController, and
doesn't reload:
UIStoryboard *sb = [UIStoryboard
storyboardWithName:@"MainStoryboard_iPhone" bundle:nil];
UIViewController *vc = [sb
instantiateViewControllerWithIdentifier:@"ModalViewName"];
[self presentModalViewController:vc animated:YES];
that is I want completely reset, that is, as if I had just closed
ModalViewController, and then reopened.
P.S.: setNeedsDisplay or/and removeFromSuperview not to offer. Thanks!

No comments:

Post a Comment