presentmodalviewcontroller

Animate presentModalViewController from right /left

十年热恋 提交于 2019-11-28 14:59:29
问题 Currently I am using [self presentModalViewController :newVC animated:YES] .I want to present newViewcontroller from left/right/top/bottom with a push effect. I tried to use CATransition but it displays a black screen in between the transition. 回答1: When present: CATransition *transition = [CATransition animation]; transition.duration = 0.3; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; transition.type = kCATransitionPush; transition

Unable to get presentViewController to work

烈酒焚心 提交于 2019-11-27 19:18:29
I copied a working viewcontroller class from another project into a new project. I can't get the view to load in the new project. In the old project I used presentModalViewController. In the new I cannot get the view to load using either presentModalViewController or presentViewController I am trying to load the present the view from my main view controller. Here is what my main view controller interface looks like... // ViewController.h #import <UIKit/UIKit.h> #import "RequestDialogViewController.h" @interface ViewController : UIViewController <RequestDialogViewControllerDelegate> { } - (void

willRotateToInterfaceOrientation not being called from presented viewcontroller

▼魔方 西西 提交于 2019-11-27 18:20:28
问题 I have uiviewcontroller on ipad with this configuration: shouldAutorotate (true) supportedInterfaceOrientations (UIInterfaceOrientationMaskAll) and inside willRotateToInterfaceOrientation i perform some trick to adjust my interface. From a child of this controller I show a QuickLookController with this -poor- code. [[[[[UIApplication sharedApplication] delegate] window] rootViewController] presentViewController:previewController animated:YES completion:nil]; But if I rotate my ipad the method

iOS 7 Translucent Modal View Controller

依然范特西╮ 提交于 2019-11-27 08:57:59
问题 The App Store app on iOS 7 uses a frosted glass-type effect where it is possible to see the view behind. Is this using an API built into iOS 7 or is it custom code. I was hoping it would be the former but I can't see any obvious references in the documentation. Obvious things like (like setting the alpha property on the modal view) don't seem to have any effect. To see an example, open the App Store app and press the button at the top-right. 回答1: With the release of iOS 8.0, there is no need

Present modal view controller in half size parent controller

北城以北 提交于 2019-11-27 06:27:52
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 have tried to set frame.superview and it doesn't help. Please advice. Jannis You can use a

Showing pushviewcontroller animation look like presentModalViewController

半腔热情 提交于 2019-11-27 02:46:23
Is it possible to show pushViewController animation look like presentModalViewController but that has background functionality of pushViewController ? jithinroy 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:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO]; [UIView

presentViewController and displaying navigation bar

时光总嘲笑我的痴心妄想 提交于 2019-11-27 00:01:31
问题 I have a view controller hierarchy and the top-most controller is displayed as a modal and would like to know how to display the navigation bar when using 'UIViewController:presentViewController:viewControllerToPresent:animated:completion' The docs for 'presentViewController:animated:completion:' note: 'On iPhone and iPod touch, the presented view is always full screen. On iPad, the presentation depends on the value in the modalPresentationStyle property.' For 'modalPresentationStyle', the

Unable to get presentViewController to work

左心房为你撑大大i 提交于 2019-11-26 22:48:01
问题 I copied a working viewcontroller class from another project into a new project. I can't get the view to load in the new project. In the old project I used presentModalViewController. In the new I cannot get the view to load using either presentModalViewController or presentViewController I am trying to load the present the view from my main view controller. Here is what my main view controller interface looks like... // ViewController.h #import <UIKit/UIKit.h> #import

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

久未见 提交于 2019-11-26 21:07:19
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 the app compiled with iOS 5.0. How can I resolve this problem? Moreover, why doesn't it dismiss the B view

iOS: Modal ViewController with transparent background

本秂侑毒 提交于 2019-11-26 15:35:20
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 know I could just add the view as a subview, but I'd like to avoid this solution for some reason. How