Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- profile.isEnabled = true
- profile.saveToPreferences(completionHandler: { (error: Error?) in
- if error != nil {
- NSLog("today111 TodayViewDelegate Error while saving \(error?.localizedDescription)")
- }
- else {
- profile.loadFromPreferences(completionHandler: { (error: Error?) in
- if error != nil {
- NSLog("today111 TodayViewDelegate Error while loading \(error?.localizedDescription)")
- }
- else {
- do {
- try profile.connection.startVPNTunnel()
- NSLog("today111 TodayViewDelegate Start profile successful")
- }
- catch {
- NSLog("today111 TodayViewDelegate Error Start profile \(error.localizedDescription)")
- }
- }
- })
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement