How to assign a value to a BOOL pointer in Objective-C?

前端 未结 4 685
耶瑟儿~
耶瑟儿~ 2020-12-30 19:11

I\'m having a bit of a confusion on how to assign a value to a BOOL pointer? Here\'s my code:

- (void)locationManager:(CLLocationManager *)manager didUpdateT         


        
4条回答
  •  长情又很酷
    2020-12-30 19:47

    Could be that you should write

    *initialBroadcast = YES; // Where I'm having troubles
    

    The line before seem to be a standard check to see that the pointer is valid (not nil)

提交回复
热议问题