modalviewcontroller

Presenting a modal view controller over only one half of a split view controller

核能气质少年 提交于 2019-12-04 19:10:31
I'm adapting an existing iPhone app to run on the iPad. In the iPhone version, when the user tapped a toolbar button, I would present a modal view controller with a modalTransitionStyle of UIModalTransitionStyleFlipHorizontal , which made a really nice "card-flipping" animation. The iPad interface is based on a split view ( MGSplitViewController , actually). The toolbar button is on the detail pane, so when I present the modal view controller, it takes up the entire screen and the flip transition makes no sense. To get the right user interaction, I'd like the modal controller to appear and

ios: how to dismiss a modal view controller and then pop a pushed view controller

僤鯓⒐⒋嵵緔 提交于 2019-12-04 18:32:31
问题 I have a view controller B that is pushed onto the navigation stack by root view controller A and this view controller B needs to display an alternative view if its model is in a certain state so it is modally presenting another view controller C. When I dismiss view controller C I would also like to pop view controller B if that is also on the nav stack. I would like to do it in such a way that there is only 1 transition. Any ideas? 回答1: In the scenario you posted, the presenting view

Present Modal View in iOS 6

筅森魡賤 提交于 2019-12-04 17:58:32
I want to display a modal view but I have two problems: There is no presentModalViewController in iOS 6 and I have to use presentViewController which is just display my second ViewController like a modal segue not a modal window without full screen option, My second problem is how can I show the modal window from UICollectionViewController. I tried to use presentViewController but it just works with ViewController not CollectionViewController. The best example of what I want to do is this (Instagram). How they made this modal window? Is it because it's still working with older iOS versions and

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

旧巷老猫 提交于 2019-12-04 14:59:29
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) { // userLoggedIn getter calls new screens of login if needed return; // this is executed if user declined to login }

ios wantsFullScreenLayout statusbar visible

纵饮孤独 提交于 2019-12-04 14:29:10
问题 I'm facing the following problem, I trying to present a modalViewController and make it cover the entire screen, for example: [controller setWantsFullScreenLayout:yes]; [myNavController presentModalViewController:controller animated:yes]; the result is that the controller does not cover the entire screen and the status bar is visible on top. I don't really understand why this happens. 回答1: The wantsFullScreenLayout property does not hide the status bar, it makes the view controller get layed

iOS: display modal view over the top of a UIWebView

只愿长相守 提交于 2019-12-04 13:45:50
Is it possible to display a modal view over the top of a UIWebView? I have a UIViewController that loads a WebView. I then want to push a Modal View Controller over the top so that a modal view covers up the WebView temporarily... The WebView is working fine; here's how it's loaded in the View Controller: - (void)loadView { // Initialize webview and add as a subview to LandscapeController's view myWebView = [[[UIWebView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]; myWebView.scalesPageToFit = YES; myWebView.autoresizesSubviews = YES; myWebView.autoresizingMask =

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

人盡茶涼 提交于 2019-12-04 12:36:49
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. I've tested this a good bit, and it appears that the following statements are true: UIModalTransitionStylePartialCurl has a MINIMUM curl of about half

present more than one modalview in appdelegate

让人想犯罪 __ 提交于 2019-12-04 12:21:05
问题 I want to present a modalviewcontroller after every push-message the app recieves in "application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo" I present the viewcontroller like this: ReleaseViewController *viewController = [[ReleaseViewController alloc] init]; UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:viewController]; [self.window.rootViewController presentModalViewController:navController animated

How can I find portion of my view which isn't covered by the keyboard (UIModalPresenationStyleFormSheet)?

ぃ、小莉子 提交于 2019-12-04 09:54:15
I've got a view controller showing a view with a UITextView, and I want to resize the view when the keyboard appears so that the UITextView isn't covered by the keyboard. I have this working correctly in almost all cases. I'm still seeing some weirdness on the iPad, only when the view controller is presented in ModalPresentationStyleFormSheet, and only in LandscapeRight orientation, as far as I can tell. Relevant parts of my view controller's -keyboardWillShow: // We'll store my frame above the keyboard in availableFrame CGRect availableFrame = self.view.frame; // Find the keyboard size

Best way to pass data from Child Modal VC to the Parent View Controller?

百般思念 提交于 2019-12-04 08:35:17
问题 What is the best way to pass data from a child modal view to the parent view controller? I have a Child Modal Login Screen on my iPad app that I want to pass back user information to the parent Split View Controller. I am thinking of using NSNotification, but I am not sure if this is the easiest/most efficient way to pass data back to the parent. Thanks! Alan 回答1: I would suggest, as iPatel did, to use delegation to solve your problem. The relationship between the parent view controller and