Why use coreBluetooth connectPeripheral did not call delegate methods in IOS8

前端 未结 3 496
孤街浪徒
孤街浪徒 2020-12-11 02:19

I want use CoreBluetooth.framework in IOS8 to achieve data transfer, i did discover peripheral in the follow method and try connect the per

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 03:10

    @Sj comment solved it for me, copying it into an answer in case someone will miss it:

    Did u tried storing the peripheral object in an ivar and then connect to it? ie self.discoveredPeripheral = peripheral; [self.centralManager connectPeripheral:self.discoveredPeripheral options:nil];

提交回复
热议问题