Connect to iOS app
Swift
1
import Parse
2
3
@UIApplicationMain
4
class AppDelegate: UIResponder, UIApplicationDelegate {
5
6
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool
7
{
8
self.setupParse()
9
return true
10
}
11
12
func setupParse()
13
{
14
Parse.setLogLevel(PFLogLevel.debug)
15
Parse.enableLocalDatastore()
16
let parseConfiguration = ParseClientConfiguration(block:
17
{
18
(ParseMutableClientConfiguration) -> Void in
19
ParseMutableClientConfiguration.applicationId = "xxxxxxxxxx"
20
ParseMutableClientConfiguration.clientKey = "yyyyyyyyy"
21
ParseMutableClientConfiguration.server = "https://xxxx.parse-symbyoz.com/parse"
22
ParseMutableClientConfiguration.isLocalDatastoreEnabled = true
23
})
24
Parse.initialize(with: parseConfiguration)
25
}
26
}
27
28
29
30
31
Copied!
Copy link