Recently i updated to the XCODE 11 and came to know the concepts of SceneDelegate and AppDelegate . This is my simple code for in AppDelegate :
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window.backgroundColor = [UIColor yellowColor];
return YES;
}
But unfortunately its getting crashed on the following line as shown in the Image:
And it shows the following error:
Please help me in resolving the issue which i am facing. Any help will be appreciated.
To Remove Screen Delegates:
Goto info.plist and remove the selected entry as shown below:
Delete ScreenDelegate.h and ScreenDelegate.m from the project:
Update your AppDelegate.h to:
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow * window;
@end
And finally, remove the Screen delegates from the AppDelegates class:
Hope that helps.
If you want to use ScreenDelegates you can refer the answer from Asperi