//如果NSMutableArray裡沒有就加入
if(![self.dicoveredPeripherals containsObject:peripheral])
[self.dicoveredPeripherals addObject:peripheral];
//如果NSMutableArray裡有就移除
if([self.dicoveredPeripherals containsObject:peripheral])
[self.dicoveredPeripherals removeObject:peripheral];
沒有留言:
張貼留言