Jaspreet Singh
Jaspreet Singh

Reputation: 1180

Which devices support remote control event in IOS

I am trying to perform a function from a bluetooth device(Apple Wireless keyboard etc.) I implemented UIControlEvent on key press but no events are received. Is it possible to receive events on a click of any button on bluetooth device?

Upvotes: 0

Views: 118

Answers (1)

Areal-17
Areal-17

Reputation: 406

With Bluetooth LE it should be possible. You have to implement the *- (void)peripheral:(CBPeripheral *)peripheral didDiscoverServices:(NSError )error of the CBPeripheralDelegate protocol. This message will send to the delegate object after your device has added a peripheral and and the method discoverService: was sended

Upvotes: 1

Related Questions