Questions tagged [uiscenedelegate]

Methods you use to respond to life-cycle events occurring within a scene.

UISceneDelegate is available in UIKit since iOS 13.

From https://developer.apple.com/documentation/uikit/uiscenedelegate?language=objc

Use your UISceneDelegate object to manage life-cycle events in one instance of your app's user interface. This interface defines methods for responding to state transitions that affect the scene, including when the scene enters the foreground and becomes active, and when it enters the background. Use your delegate to provide appropriate behavior when these transitions occur. For example, finish critical tasks and quiet your app when it enters the background.

Do not create UISceneDelegate objects directly. Instead, specify the name of your custom delegate class as part of the configuration data for your scenes. You can specify this information in your app's Info.plist file, or in the UISceneConfiguration object you return from your app delegate's application:configurationForConnectingSceneSession:options: method.

156 questions
-1
votes
1 answer

Is SceneDelegate mandatory?

The question says it all. There's the following line in apple documentation, Scenes are opt in, but you must support them if you want to display multiple copies of your app’s UI simultaneously. It's not mentioned whether the SceneDelegate is…
NightFuryLxD
  • 847
  • 5
  • 15
-1
votes
1 answer

'keyWindow' is deprecated: first deprecated in iOS 13.0 in Objective-C

This is my simple button action to show a XIB file which is actually a bar code scanner in Objective-C. - (IBAction)startCamera:(id)sender { BarcodeVC * controller = [[BarcodeVC alloc] initWithNibName:@"BarcodeVC" bundle:[NSBundle…
User1075
  • 819
  • 15
  • 36
-1
votes
1 answer

SwiftUI how to call or notify scenedelegate from a view

I have some code (bluetooth manager) that I want to implement as a singleton for the application. I read many tutorials online about passing environment variable & using observed object to share states, which is useful to pass data from scene…
Fangming
  • 24,551
  • 6
  • 100
  • 90
-2
votes
1 answer

Is it safe to remove SceneDelegate from Existing project?

I have my project which supports minimum ios version 12.4 and I'm using swift 5.2 in my project. To suuport Zoom SDK I need to remove sceneDelegate.swift file and SceneManifest from info.plist. Is it safe to remove sceneDelegate from existing…
-2
votes
1 answer

getting bugs with viewController instantiation from SceneDelegate

So my goal is to be able to show the right vc without any bugs. There's actually multiple bugs with this issue. First it would make sense to show the block of code and explain it first so you can get some context on what I'm talking about. In my…
-3
votes
1 answer

Xcode 14 new project with storyboards

When I start a new project with Xcode 14, I'm unable to change the interface from SwiftUI to storyboards. Where can I create a new project, that uses storyboards instead of SwiftUI?
Display Name
  • 4,502
  • 2
  • 47
  • 63
1 2 3
10
11