Connect to iOS app
import Parse
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
{
self.setupParse()
return true
}
func setupParse()
{
Parse.setLogLevel(PFLogLevel.debug)
Parse.enableLocalDatastore()
let parseConfiguration = ParseClientConfiguration(block:
{
(ParseMutableClientConfiguration) -> Void in
ParseMutableClientConfiguration.applicationId = "xxxxxxxxxx"
ParseMutableClientConfiguration.clientKey = "yyyyyyyyy"
ParseMutableClientConfiguration.server = "https://xxxx.parse-symbyoz.com/parse"
ParseMutableClientConfiguration.isLocalDatastoreEnabled = true
})
Parse.initialize(with: parseConfiguration)
}
}
Last updated