presentmodalviewcontroller

Present modal view controller in half size parent controller

怎甘沉沦 提交于 2019-11-26 12:02:04
问题 I am trying to present modal view controller on other viewcontroller sized to half parent view controller. But it always present in full screen view. I have created freeform sized View controller in my storyboard with fixed frame size. 320 X 250. var storyboard = UIStoryboard(name: \"Main\", bundle: nil) var pvc = storyboard.instantiateViewControllerWithIdentifier(\"CustomTableViewController\") as ProductsTableViewController self.presentViewController(pvc, animated: true, completion: nil) I

Showing pushviewcontroller animation look like presentModalViewController

≯℡__Kan透↙ 提交于 2019-11-26 10:15:31
问题 Is it possible to show pushViewController animation look like presentModalViewController but that has background functionality of pushViewController ? 回答1: Try this : UIViewController *yourViewController = [[UIViewController alloc]init]; [UIView beginAnimations: @"Showinfo"context: nil]; [UIView setAnimationCurve: UIViewAnimationCurveEaseInOut]; [UIView setAnimationDuration:0.75]; [self.navigationController pushViewController: yourViewController animated:NO]; [UIView setAnimationTransition

UIModalTransitionStylePartialCurl doesn't get back to previous state. (Not dismissing)

戏子无情 提交于 2019-11-26 07:49:38
问题 I\'ve got 2 view controllers, let\'s say A and B. In A, I\'m calling B to be shown with transition style UIModalTransitionStylePartialCurl [b setModalTransitionStyle:UIModalTransitionStylePartialCurl]; [self presentModalViewController:b animated:YES]; It is working fine. However when I press the curled area in the program compiled with iOS 4.3. It does not dismiss at all. It doesn\'t get back to A view controller... What the most interesting is that this curl is active and giving response in

iOS: Modal ViewController with transparent background

泄露秘密 提交于 2019-11-26 04:03:58
问题 I\'m trying to present a view controller modally, with a transparent background. My goal is to let both the presenting and presented view controllers\'s view to be displayed at the same time. The problem is, when the presenting animation finishes, the presenting view controller\'s view disappears. - (IBAction)pushModalViewControllerButtonPressed:(id)sender { ModalViewController *modalVC = [[ModalViewController alloc] init]; [self presentViewController:modalVC animated:YES completion:nil]; } I