modalviewcontroller

Multiple MODAL VIEW controller change base modal to FULL SCREEN after ROTATION

心不动则不痛 提交于 2019-12-08 19:15:45
问题 This has been troubling me for quite a while, and I have done so much research on this, but could't find an answer. My first time posting a question here, please correct/forgive me if I make a mistake. Environment: iPad, iOS 6.0 Problem: Base modal view change to full screen after rotation. Description: I have a full screen application running currently showing a modal view controller. From the showing modal view, I display another modal view by doing: vc.modalPresentationStyle =

IOS/Xcode/Coredata: How to force reload from NSFetchedResults Controller When Modal Controller Dismisssed

懵懂的女人 提交于 2019-12-08 11:12:56
问题 I have a detail view controller (part of master detail) and an edit screen that appears modally. After you save edit changes, the modal edit screen is dismissed, leaving the detail screen. What is the best way to get the detail screen to refresh to show the changes made to the managed object context. Normally the FRC is lazy loaded so the first time it appears it has new data but in this case, I think the screen is already there behind the modal edit screen so when the edit screen is

ipad modalviewcontroller when dismissed does not go to the viewdidappear of the mainviewcontroller

岁酱吖の 提交于 2019-12-08 07:02:39
问题 Hi I have a modalview controller that pops up on the main menu after the user successfully logs in. This is used for additional roles that needs to be saved on the userdefaults. The modal gets dismissed properly but it doesn't go through the -viewdidappear method after. I had it programmed so that after choosing the role, it would load the whole main menu with populated data based off of the role. I used to do a "presentViewController:roleVC" instead of the modal but decided not to use it

MVC violation in Ionic(angular) framework with $ionicModal

二次信任 提交于 2019-12-08 00:11:00
问题 When working with the $ionicModal in Ionic Framework, I noticed a lot of people instantiate the Modal inside the controller and pass the controller scope to the Modal. Like so, $ionicModal.fromTemplateUrl("views/call_options_view.html", function ($ionicModal) { $scope.menu = $ionicModal; }, { scope: $scope, animation: "slide-in-up" }); Doing this allows the modal to invoke methods in the controller scope. Is there some way we can give a separate controller to the Modal? Right now, using the

iTunes style modal view controller chain (form sheet)

邮差的信 提交于 2019-12-07 16:38:05
问题 Is there a way to achieve the iTunes style modal view controller chain (see screenshot)? I've looked around quite a bit but couldn't find any real questions about this. I'm not looking for a replacement or workaround, just want to know if it is possible to do with the current SDK (or iOS 5.0, although we are not supposed to talk about it a simple Yes/No would suffice). For those who can not make it out from the image; iTunes on the iPad has this great feature where you can view a movie in a

ipad modalviewcontroller when dismissed does not go to the viewdidappear of the mainviewcontroller

非 Y 不嫁゛ 提交于 2019-12-07 15:35:35
Hi I have a modalview controller that pops up on the main menu after the user successfully logs in. This is used for additional roles that needs to be saved on the userdefaults. The modal gets dismissed properly but it doesn't go through the -viewdidappear method after. I had it programmed so that after choosing the role, it would load the whole main menu with populated data based off of the role. I used to do a "presentViewController:roleVC" instead of the modal but decided not to use it anymore as I cannot modify the size of the VC (I want it to display with a modal style). Anyway, with

Place button outside Modal View Controller

时光怂恿深爱的人放手 提交于 2019-12-07 15:16:32
I would like to add a close button outside the bounds of the modal view controller which I am presenting on an iPad app. I tried adding a button normally via storyboard, via coding, but the UIButtons view gets clipped by the bounds of the modal view controller. What my purpose is : I want to add a close button at the right corner of my modal view controller which is configured as a Form sheet. I'm launching the modal view controller via a segue from my previous view. Attached screenshot show what I am trying to achieve: 来源: https://stackoverflow.com/questions/16105673/place-button-outside

UINavigationBar refuses to show in Modal View Controller

寵の児 提交于 2019-12-07 14:32:48
问题 I am loading a Modal view controller using the following code in my RootViewController: [self.navigationController presentModalViewController:accountViewController animated:YES]; In the accountViewController xib file, I have set a navigation bar. My MainWindow.xib and RootViewController.xib also have the navigation bar setup correctly. Additionally, my app delegate has setup the navigation controller (I assume) correctly: UINavigationController *aNavigationController = [

present modal form sheet over modal page sheet

混江龙づ霸主 提交于 2019-12-07 09:00:37
问题 On the iPad I display a modal view controller with the modalPresentationStyle UIModalPresentationPageSheet. This view controller presents another modal view controller using the modalPresentationStyle UIModalPresentationFormSheet. So, the user sees the background view controller, the page sheet and the form sheet all on top of each other, since the form sheet is smaller than the page sheet. The presentation of the page sheet lets the background dim, so that it can't be interacted with. The

How To Present Half Screen Modal View?

点点圈 提交于 2019-12-07 07:22:30
问题 I have a UIViewController and when a button is pressed, I want a half screen view to slide up with a UIPicker in it. I made a UIView in IB with the UIPicker along with a UIToolBar with Done/Cancel buttons. How can I make it so that just this half view slides up and the background view is still showing but dimmed or cant be played with. I'm using this code so far: - (void)showModalView { [self.popupView setFrame:CGRectMake(0, self.view.frame.size.height, self.view.frame.size.width, self.view