@interface BLEManager : NSObject{
CBPeripheral* _activePeripheral;
}
//實作activePeripheral的getter
CBPeripheral* _activePeripheral;
}
//實作activePeripheral的getter
-(CBPeripheral*) activePeripheral{
return _centralController.activePeripheral;
}
//實作activePeripheral的setter
-(void) setActivePeripheral:(CBPeripheral *)activePeripheral{
_activePeripheral = activePeripheral;
}
Note.實作完之後,就要手動完成property的其他事情。
Note.實作完之後,就要手動完成property的其他事情。
沒有留言:
張貼留言