presentmodalviewcontroller

Is it possible to use swipe to dismiss while presenting a fullscreen modal in iOS 13?

99封情书 提交于 2020-12-12 12:11:26
问题 With the new default card modal presentation in iOS 13, there is a nice feature that is swipe to dismiss. Is it possible to use this feature while presenting a classic .fullscreen modal? I checked and if isModalInPresentation is false while presenting in fullscreen. Any ideas? 回答1: It seems that the swipe to dismiss will only work if the modal is presented as a sheet, as stated in this year's wwdc: Now, what do you all have to do to support Pull to Dismiss? In general, nothing. If you present

Is it possible to use swipe to dismiss while presenting a fullscreen modal in iOS 13?

时光怂恿深爱的人放手 提交于 2020-12-12 12:09:20
问题 With the new default card modal presentation in iOS 13, there is a nice feature that is swipe to dismiss. Is it possible to use this feature while presenting a classic .fullscreen modal? I checked and if isModalInPresentation is false while presenting in fullscreen. Any ideas? 回答1: It seems that the swipe to dismiss will only work if the modal is presented as a sheet, as stated in this year's wwdc: Now, what do you all have to do to support Pull to Dismiss? In general, nothing. If you present

Modal viewcontroller UI not responsive after presentViewController:animated:completion:

大憨熊 提交于 2020-02-25 04:40:08
问题 My app has a root viewcontroller, which at the start of the app displays login viewController view if the user is not logged in main viewController view if the user is logged in AppDelegate code: - (BOOL) application: (UIApplication*) application didFinishLaunchingWithOptions: (NSDictionary*) launchOptions { self.window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]]; self.window.rootViewController = [[RootViewController alloc] init]; [self.window makeKeyAndVisible]; return

Modal viewcontroller UI not responsive after presentViewController:animated:completion:

拜拜、爱过 提交于 2020-02-25 04:38:31
问题 My app has a root viewcontroller, which at the start of the app displays login viewController view if the user is not logged in main viewController view if the user is logged in AppDelegate code: - (BOOL) application: (UIApplication*) application didFinishLaunchingWithOptions: (NSDictionary*) launchOptions { self.window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]]; self.window.rootViewController = [[RootViewController alloc] init]; [self.window makeKeyAndVisible]; return

ios13 prevent pulling down on tableView which is scrolled to top from dismissing sheet style modally presented viewController [duplicate]

别来无恙 提交于 2020-01-16 09:01:08
问题 This question already has answers here : Disable gesture to pull down form/page sheet modal presentation (9 answers) Closed 2 months ago . I have a tableViewController which is presented modally with the default sheet style presentation. I want to keep this modal style as it looks good and works well in my app. And I like the dismiss when pulling down on the navigation bar. However what I don't want is pulling down on the tableView cells to cause the tableViewController to be dismissed when

Dismissing viewController by pressing on tabbar button remain black screen swift 5

风流意气都作罢 提交于 2020-01-15 09:18:50
问题 I have a custom action sheet viewController . Which is presented modally on the current top view controller. Like this: //MARK: Static Func static func initViewController() -> CustomActionSheetViewController { let customActionSheetViewController = CustomActionSheetViewController(nibName: "CustomActionSheetViewController", bundle: nil) return customActionSheetViewController } func presentViewController<T: UIViewController>(viewController: T) { DispatchQueue.main.async { if let

Dismissing viewController by pressing on tabbar button remain black screen swift 5

五迷三道 提交于 2020-01-15 09:18:40
问题 I have a custom action sheet viewController . Which is presented modally on the current top view controller. Like this: //MARK: Static Func static func initViewController() -> CustomActionSheetViewController { let customActionSheetViewController = CustomActionSheetViewController(nibName: "CustomActionSheetViewController", bundle: nil) return customActionSheetViewController } func presentViewController<T: UIViewController>(viewController: T) { DispatchQueue.main.async { if let

GKLeaderboardViewController initial leaderboard

浪子不回头ぞ 提交于 2020-01-15 04:57:39
问题 When GKLeaderboardViewController is presented, it shows first leaderboard on the list, even if the GKLeaderboardViewController 's leaderboard category is not set. Only way to see the list of all leaderboards is clicking Leaderboards button at the top. Is there any way to display list of all leaderboards when GKLeaderboardViewController is presented? 回答1: You can set category to nil. GKLeaderboardViewController *leaderboardController = [[GKLeaderboardViewController alloc] init]; if

Interact with presenting controller whilst a modal controller is displayed

橙三吉。 提交于 2020-01-15 01:46:06
问题 Is it possible to interact with a presenting view controller whilst a model view controller is being presented? ------------ | | | VC1 | | | | | | | | | |------------| | VC2 | | | ------------ In the illustration above VC1 is the presentingViewController and VC2 is the presentedViewController . The user experience I am trying to achieve is that the user can interact with VC1 and VC2. At the moment, touches are not passed through to VC1 when VC2 is presented. 回答1: I might be late to this but

Interact with presenting controller whilst a modal controller is displayed

六月ゝ 毕业季﹏ 提交于 2020-01-15 01:44:08
问题 Is it possible to interact with a presenting view controller whilst a model view controller is being presented? ------------ | | | VC1 | | | | | | | | | |------------| | VC2 | | | ------------ In the illustration above VC1 is the presentingViewController and VC2 is the presentedViewController . The user experience I am trying to achieve is that the user can interact with VC1 and VC2. At the moment, touches are not passed through to VC1 when VC2 is presented. 回答1: I might be late to this but