* 前提:由于锁不能自动联网,APP对锁的修改操作都应该由APP负责通知服务器做相应的修改。
兼容最低版本: iOS 9.0.0 Xcode最低版本: Xcode 14
xxxxxxxxxxplatform :ios, '9.0'use_frameworks! target 'YourProject' do pod 'TTLock' #锁控制功能模块(必需) end
xxxxxxxxxx
xxxxxxxxxx- (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;}