我添加从控制器A现在,在控制器B这是子视图控制器的子视图中删除子视图,我怎样才能重新加载视图一个当用户正与乙做什么?IOS从另一个控制器
ChangeProfileImage *changeProfileImage =[[ChangeProfileImage alloc] init];
changeProfileImage.modalPresentationStyle = UIModalPresentationFormSheet;
changeProfileImage.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
changeProfileImage.view.frame = CGRectMake(50, 50, 300, 300);
UIView *dimBackgroundView = [[UIView alloc] initWithFrame:self.view.bounds];
dimBackgroundView.backgroundColor = [[UIColor grayColor] colorWithAlphaComponent:.5f];
[self.view addSubview:dimBackgroundView];
[self.view addSubview:changeProfileImage.view];
所以在控制器B ..你尝试'[self.view removeFromSuperView]'? –
这可以删除changeprofileimage视图,但dimbackground视图又如何?以及如何刷新控制器A? – user2514963
检查答案Plz。 –