Skip to content

Instantly share code, notes, and snippets.

@duoduoyi
duoduoyi / IPSecDemo.m
Created May 18, 2016 07:34 — forked from zqqf16/IPSecDemo.m
Start IPSec programmatically in iOS 8
- (void)viewDidLoad
{
[super viewDidLoad];
// init VPN manager
self.vpnManager = [NEVPNManager sharedManager];
// load config from perference
[_vpnManager loadFromPreferencesWithCompletionHandler:^(NSError *error) {