{{getTexts.ios.integration.ioxMinVer}} iOS 9.0.0 Cocopods 集成说明
Installation by Cocopods
platform :ios, '9.0' use_frameworks! target 'YourProject' do pod 'TTLock' #锁控制功能模块(必需) #pod 'TTLockDFU' 锁升级功能模块(可选) #pod 'TTLockGateway' 网关功能 (可选) end platform :ios, '9.0' use_frameworks! target 'YourProject' do pod 'TTLock' #To operate the lock(Required) pod 'TTLockDFU' #To upgrade the lock(optional) pod 'TTLockGateway' #To operate the Gateway(optional) end {{getTexts.V3.ios.instruction.import}}
#import <TTLock/TTLock.h> {{getTexts.V3.ios.instruction.setBluetooth}}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //TTLock.printLog = YES; [TTLock setupBluetooth:^(TTBluetoothState state) { NSLog(@"############## TTLock is working, bluetooth state: %ld ##############",(long)state); }]; return YES; } |