Skip to main content

All Questions

Tagged with
2 votes
4 answers
3k views

Determine background status with SwiftUI

When using SwiftUI with iOS 13+, the traditional means of determining background state no longer work. For example: AppDelegate methods applicationDidEnterBackground(_ application: UIApplication) and ...
davidgyoung's user avatar
  • 64.6k
1 vote
0 answers
194 views

How to add subview to UIWindow Scene iOS 13

I have created a in house framework which works perfectly fine till iOS 12, as I am adding a button (floating button) on window so that it is visible on entire app. I have created a UIWindow class to ...
Ankita Kalbande's user avatar
0 votes
1 answer
455 views

iOS 13 - applicationWillTerminate from UIApplicationDelegate equivalent for UISceneDelegate?

I'm using iOS 13 and its new UISceneDelegate and I want to execute a function when app is killed. I used to use the applicationWillTerminate function from UIApplicationDelegate but I don't see this ...
nelson PARRILLA's user avatar
0 votes
1 answer
816 views

Local notifications didReceive in iOS 13

I am implementing notifications in my app and I can not figure out how to go to a specific view controller when the user presses on the notification. Since iOS 13, my app is using SceneDelegate, but ...
fphelp's user avatar
  • 1,606
2 votes
2 answers
1k views

How to make Onboarding work with Scene Delegate in iOS13?

I am trying to set up my onboarding screen in the SceneDelegate. When I run the code below, it compiles, but just goes to a black screen. They're many great onboarding tutorials for AppDelegate, ...
Matt Manion's user avatar
-1 votes
1 answer
8k views

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

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] ...
User1075's user avatar
  • 835
3 votes
1 answer
1k views

Setting Up CoreData with SceneDelegate - unknown identifier 'window' error - iOS 13 onwards

I was trying to use the official apple documentation for Core Data. Found here. I also ran into a question which was related to my issue, right here on stack. I ran into an issue where, it kept ...
Jay's user avatar
  • 2,878
7 votes
1 answer
2k views

IOS 13 cant handle universallink click when app opened with link click

I am trying to handle open apps from universal link click. below ios 13 its working good but for ios 13 its working only app running in background. If app not working foreground or background, ...
nikinci's user avatar
  • 444
3 votes
3 answers
609 views

iPadOS: Can I request another app to open in split screen?

I have written two Apps, let's call them A and B. When the user does a special action inside a fullscreen-displayed app A I want app B to automatically open in split screen next to app A. In this ...
heyfrank's user avatar
  • 5,517
1 vote
3 answers
483 views

Black Screen in iOS 13 when change Storybord View Controller

In iOS 13 when i call to other StoryBoard, when charge the ViewController appear a black screen on my view. I use this code for call a new StoryBoard: UIStoryboard *homeSB = [UIStoryboard ...
Antonio Ureba's user avatar
2 votes
0 answers
1k views

SceneDelegate in iOS 13, Is it necessary?

I have an app that was initially written with minimum iOS target of iOS 11 After adding new features and support for iOS 13, the recent version now requires minimum iOS target of iOS 13. There is no ...
FE_Tech's user avatar
  • 1,664
1 vote
1 answer
724 views

Difference between "didBecomeActive" and "willResignActive" method pairs for UISceneDelegate and UIApplicationDelegate?

My main task is to overlap the screen with non-transparent view to hide info when app enters background. The official solution is described here. The problem is it sometimes doesn't work on iOS 13. ...
Vyachaslav Gerchicov's user avatar
2 votes
1 answer
859 views

Getting "Error Domain=NSCocoaErrorDomain Code=257" in a document based app while attempting state restoration

Full error message is: [main] *** Error from FPBookmarkableStringFromDocumentURL, file:///private/var/mobile/Library/Mobile%20Documents/com~apple~CloudDocs/MY_APP/hello.txt -> Error Domain=...
Jan Kriz's user avatar
4 votes
1 answer
3k views

How to use new Scene Delegate in Xcode

I'm trying to change a Label's text or show an alert when my iOS app becomes active from the background state. When I call a function in the ViewController class only the print() method works fine. ...
anixrud's user avatar
  • 194
4 votes
4 answers
2k views

Using UIScenes in iOS 13, how do I AirPlay Mirror a screen (seems to default to external display)

If I compile onto an iOS 12 device (doesn't use UIScene) and AirPlay Mirror to my Apple TV the app is mirrored as expected to the TV. On an iOS 13 device, it seems to treat it as an external display ...
christianselig's user avatar

15 30 50 per page