How to detect if a iphone is connected to any bluetooth device or not?
问题 I came across this new API from iOS 7. - (NSArray *)retrieveConnectedPeripheralsWithServices:(NSArray *)serviceUUIDs NS_AVAILABLE(NA, 7_0); So its pretty clear that if the return array count is greater than 0 than its connected to atleast one device. But before using this API I am not able to figure it out the argument (serviceUUIDs) that I have to passed here. Can someone explain here with an example? 回答1: You can't use this method unless you know at least one service exposed by the device.