modalviewcontroller

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

UIViewController In-Call Status Bar Issue

主宰稳场 提交于 2019-11-26 12:45:37
问题 Issue: Modally presented view controller does not move back up after in-call status bar disappears, leaving 20px empty/transparent space at the top. Normal : No Issues In-Call : No Issues After In-Call Disappears: Leaves a 20px high empty/transparent space at top revealing orange view below. However the status bar is still present over the transparent area. Navigation Bar also leaves space for status bar, its\' just 20px too low in placement. iOS 10 based Modally presented view controller

Swift Modal View Controller with transparent background [duplicate]

你离开我真会死。 提交于 2019-11-26 11:52:16
问题 This question already has answers here : Transparent background for modally presented viewcontroller (4 answers) Closed 4 years ago . I know this topic is quite popular, but I\'m a little iniciate problem in a programming language, the fact is that I still do not understand where I put the code. Well, I\'ll tell the whole case: I\'m trying to make a modal Swift in a little different from normal: By clicking on a button, the ViewController is displayed (following modal type) on the screen, but

iOS: Use a boolean in NSUserDefaults

ぃ、小莉子 提交于 2019-11-26 10:24:42
问题 When the rootViewController of my application is loaded, I want to be able to check whether or not the users login credentials have been saved to NSUserDefaults . Basically, when the user loads the application and he/she doesn\'t have her login credentials saved, a modalAlertView will be pushed and the user will be able to save their credentials appropriately. This saves those UITextField strings to a respective NSUserDefault object. However, is it possible, that when this saving is done, I

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

dismissModalViewController AND pass data back

99封情书 提交于 2019-11-26 01:41:25
问题 I have two view controllers, firstViewController and secondViewController . I am using this code to switch to my secondViewController (I am also passing a string to it): secondViewController *second = [[secondViewController alloc] initWithNibName:nil bundle:nil]; second.myString = @\"This text is passed from firstViewController!\"; second.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; [self presentModalViewController:second animated:YES]; [second release]; I then use this code in

Presenting modal in iOS 13 fullscreen

北城以北 提交于 2019-11-25 22:04:07
问题 In iOS 13 Beta 1 there is a new behaviour for modal view controller when being presented. Now it\'s not fullscreen by default and when I try to slide down, the app just dismiss the View Controller automatically. How can I prevent this behaviour and get back to the old good fullscreen modal vc? Thanks 回答1: With iOS 13, as stated in the Platforms State of the Union during the WWDC 2019, Apple introduced a new default card presentation. In order to force the fullscreen you have to specify it