Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アプリケーションにコア Bluetooth フレームワークを使用する予定ですが、この状況で別の BLE デバイスと長時間接続している場合、接続中にバッテリーレベルが急速に低下するため、バッテリーレベルをどのように処理するかを知りたいです。
これは、バッテリーレベルを取得する方法の例です
UIDevice *device = [UIDevice currentDevice]; [device setBatteryMonitoringEnabled:YES]; float level = [device batteryLevel];