modalviewcontroller

Problem using presentModalViewController in Ipad

雨燕双飞 提交于 2019-12-10 19:22:33
问题 In my current Ipad app, I have a split screen view in which the detail view is a scroll view containing 4 table views. The functionality I was trying to achive was that when I click any row of the table in the scroll view, a screen is show containing additional information and I used presentModalViewController to try to get this functionality. say for example, I have 3 files aViewController, bViewController, cViewController.. I am writing the code for splitViewController in the appDelegate

status bar and Navigation bar problem after dismissed modal view

主宰稳场 提交于 2019-12-10 17:41:26
问题 the apps launched the mailcomposer modal view (MFMailComposeViewController) when the Contact Us button is pressed. but once the modal view is loaded, the status bar is hidden automatically. I setStatusBarHidden Status to NO after modal view controller is dismissed. [self dismissModalViewControllerAnimated:YES]; [[UIApplication sharedApplication] setStatusBarHidden:NO]; but the status bar and navigation bar is overlapped after ModalViewController is dismissed. I got no clue how to fix it.

Present Modal View Controller On Top of UINavigationController

余生颓废 提交于 2019-12-10 16:25:16
问题 I have my app that is below a UINavigationController and therefore below a UINavigationBar. I want to present a Modal View Controller on top of this UINavigationBar because the controller I wrote doesn't make sense if it's below it (that is, I want to hide the navigation bar when showing this view controller). Presenting it with this code: ukc = [[UnlockKeyboardViewController alloc] init]; [self presentModalViewController:ukc animated:NO]; Cause the Modal view controller to be below the

How to ensure completion of a async operation before continuing with execution

青春壹個敷衍的年華 提交于 2019-12-10 11:57:36
问题 I am building an iOS app and some part of its code relies on the success/failure value returned from a particular task.This tasks involves callbacks from a library. I want the return value from this task to be returned only after the callback has returned either success/failure. But since I wrote a sequential code the return value is returned even before the callback returns a success/failure. I looked into using modal view controllers and from what I understand I can make the task execute

Dismiss Modal View from uitabbarController view

こ雲淡風輕ζ 提交于 2019-12-10 11:52:28
问题 I presented a modal view where the presented view contains a tabbar controller.The view is displayed correctly,but when I add the dismissModalViewController to a button in tabbar viewController,it is not dismissing.Nothing is happening to the view. How could I dismiss that modal view Controller? 回答1: The presenting view controller should be the one handling the dismissal of the modal view controller as well. You should use a delegate to notify the presenting view controller that it can

Place button outside Modal View Controller

本小妞迷上赌 提交于 2019-12-10 11:43:37
问题 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

With UIPresentationFormSheet, why doesn't my view move above the keyboard when it is up?

ⅰ亾dé卋堺 提交于 2019-12-10 10:34:39
问题 Apple says: UIModalPresentationFormSheet The width and height of the presented view are smaller than those of the screen and the view is centered on the screen. If the device is in a landscape orientation and the keyboard is visible, the position of the view is adjusted upward so that the view remains visible. All uncovered areas are dimmed to prevent the user from interacting with them. But my view doesn't move up when the keyboard is visible. I basically want to present a textview modally

How do I influence the size of a modal view presented with a partial page curl?

旧巷老猫 提交于 2019-12-09 19:30:34
问题 I need to have some additional data presented for a view in an application, and I'd like to implement it using a partial page curl in the same way that the Google Maps application uses a partial page curl for its settings. The problem I've got is that the presented view takes up the entire screen: How can I resize the view that's presented? Ideally, I'd like it to occupy the bottom right-hand corner the same way the Google Maps application does. 回答1: I've tested this a good bit, and it

UINavigationController: presenting view controller while dismissing another controller is in progress on iPad

依然范特西╮ 提交于 2019-12-09 19:10:10
问题 I have a view that requires user to be logged in. When the user attempts to open that view an he is not logged in I will call the login view for him to login and after he is done I will call the original view that he intended to see. On iPhone this works fine as I push view controllers there. But on iPad where I present view controller this does not work. It says that dismissal in progress, can't show new controller. Here is the code: - (void) buttonPressed { if (!userLoggedIn) { //

iOS Rotate View Controller when Modal View Controller rotates

泄露秘密 提交于 2019-12-09 18:33:46
问题 I have an UIViewController A which opens another modal UIViewController B on UIButton action. My Question is: When the current modal UIViewController B is open and did rotate - the previous UIViewController A doesn't rotate at all. This implies that when I dismiss UIViewController B - UIViewController A is still in the old state (has still the old interface orientation). Currently I am forcing A to rotate by calling a method in A when B rotates. Is there another common way to inform other