這是我的代碼。我可以看到出現小對話框,然後對話框佔據整個屏幕。哪裏不對?iOS UIView as對話框
ChangeProfileImage *changeProfileImage =[[ChangeProfileImage alloc] init];
changeProfileImage.modalPresentationStyle = UIModalPresentationFormSheet;
changeProfileImage.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:changeProfileImage animated:YES];
changeProfileImage.view.superview.frame = CGRectMake(0, 0, 200, 200);//it's important to do this after
changeProfileImage.view.superview.center = self.view.center
ChangeProfileImage是從哪裏繼承而來的?它有什麼作用? – Caleb