
blog.kulman.sk/change-uiapplication-class
Preview meta tags from the blog.kulman.sk website.
Linked Hostnames
6- 15 links toblog.kulman.sk
- 2 links togithub.com
- 1 link tobuymeacoffee.com
- 1 link togohugo.io
- 1 link tohachyderm.io
- 1 link tolinkedin.com
Search Engine Appearance
Changing UIApplication base class
When developing an iOS application you might get into a situation when you need to change the UIApplication base class. It is often a requirement when using various MDM SDKs, like the Mobile Iron AppConnect SDK. There are two ways to do that in a Swift application, both with some advantages and disadvantages. Declarative method with Info.plist The first method to change the UIApplication base class is using Info.plist. It is quite simple, you just need to add a new key NSPrincipalClass with a string value representing the name of the desired class, like AppConnectUIApplication when using the Mobile Iron AppConnect SDK. <key>NSPrincipalClass</key> <string>AppConnectUIApplication</string> No actual code changes are required. Code method with main.swift The second method is a bit more complicated but more flexible at the same time. First you need to remove @UIApplicationMain from your AppDelegate class definition. Then you add a main.swift to the root of your project that looks like this import AppConnect import UIKit UIApplicationMain( CommandLine.argc, CommandLine.unsafeArgv, ACUIApplicationClassName, NSStringFromClass(AppDelegate.self) ) The third parameter in the UIApplicationMain call is the name of the desired class, ACUIApplicationClassName in this example.
Bing
Changing UIApplication base class
When developing an iOS application you might get into a situation when you need to change the UIApplication base class. It is often a requirement when using various MDM SDKs, like the Mobile Iron AppConnect SDK. There are two ways to do that in a Swift application, both with some advantages and disadvantages. Declarative method with Info.plist The first method to change the UIApplication base class is using Info.plist. It is quite simple, you just need to add a new key NSPrincipalClass with a string value representing the name of the desired class, like AppConnectUIApplication when using the Mobile Iron AppConnect SDK. <key>NSPrincipalClass</key> <string>AppConnectUIApplication</string> No actual code changes are required. Code method with main.swift The second method is a bit more complicated but more flexible at the same time. First you need to remove @UIApplicationMain from your AppDelegate class definition. Then you add a main.swift to the root of your project that looks like this import AppConnect import UIKit UIApplicationMain( CommandLine.argc, CommandLine.unsafeArgv, ACUIApplicationClassName, NSStringFromClass(AppDelegate.self) ) The third parameter in the UIApplicationMain call is the name of the desired class, ACUIApplicationClassName in this example.
DuckDuckGo

Changing UIApplication base class
When developing an iOS application you might get into a situation when you need to change the UIApplication base class. It is often a requirement when using various MDM SDKs, like the Mobile Iron AppConnect SDK. There are two ways to do that in a Swift application, both with some advantages and disadvantages. Declarative method with Info.plist The first method to change the UIApplication base class is using Info.plist. It is quite simple, you just need to add a new key NSPrincipalClass with a string value representing the name of the desired class, like AppConnectUIApplication when using the Mobile Iron AppConnect SDK. <key>NSPrincipalClass</key> <string>AppConnectUIApplication</string> No actual code changes are required. Code method with main.swift The second method is a bit more complicated but more flexible at the same time. First you need to remove @UIApplicationMain from your AppDelegate class definition. Then you add a main.swift to the root of your project that looks like this import AppConnect import UIKit UIApplicationMain( CommandLine.argc, CommandLine.unsafeArgv, ACUIApplicationClassName, NSStringFromClass(AppDelegate.self) ) The third parameter in the UIApplicationMain call is the name of the desired class, ACUIApplicationClassName in this example.
General Meta Tags
11- titleChanging UIApplication base class - Igor Kulman
- charsetutf-8
- X-UA-CompatibleIE=edge
- viewportwidth=device-width, initial-scale=1, shrink-to-fit=no
- theme-color
Open Graph Meta Tags
4- og:titleChanging UIApplication base class
- og:descriptionWhen developing an iOS application you might get into a situation when you need to change the UIApplication base class. It is often a requirement when using various MDM SDKs, like the Mobile Iron AppConnect SDK. There are two ways to do that in a Swift application, both with some advantages and disadvantages.
- og:typearticle
- og:urlhttps://blog.kulman.sk/change-uiapplication-class/
Twitter Meta Tags
3- twitter:cardsummary
- twitter:titleChanging UIApplication base class
- twitter:descriptionWhen developing an iOS application you might get into a situation when you need to change the UIApplication base class. It is often a requirement when using various MDM SDKs, like the Mobile Iron AppConnect SDK. There are two ways to do that in a Swift application, both with some advantages and disadvantages.
Item Prop Meta Tags
6- nameChanging UIApplication base class
- descriptionWhen developing an iOS application you might get into a situation when you need to change the UIApplication base class. It is often a requirement when using various MDM SDKs, like the Mobile Iron AppConnect SDK. There are two ways to do that in a Swift application, both with some advantages and disadvantages.
- datePublished2019-10-30T05:29:12+01:00
- dateModified2019-10-30T05:29:12+01:00
- wordCount261
Link Tags
10- apple-touch-iconhttps://blog.kulman.sk/apple-touch-icon.png
- canonicalhttps://blog.kulman.sk/change-uiapplication-class/
- iconhttps://blog.kulman.sk/favicon.ico
- preloadhttps://blog.kulman.sk/theme.png
- preloadhttps://blog.kulman.sk/images/avatar.jpg
Links
21- https://blog.kulman.sk
- https://blog.kulman.sk/about
- https://blog.kulman.sk/creating-context-menu-with-highlight
- https://blog.kulman.sk/custom-areas-in-snapshots
- https://blog.kulman.sk/faster-way-to-download-and-install-xcode