草庐IT

initialBroadcast

全部标签

objective-c - 如何在 Objective-C 中为 BOOL 指针赋值?

我对如何为BOOL指针赋值有点困惑?这是我的代码:-(void)locationManager:(CLLocationManager*)managerdidUpdateToLocation:(CLLocation*)newLocationfromLocation:(CLLocation*)oldLocation{self.latitude.text=[NSStringstringWithFormat:@"%f",newLocation.coordinate.latitude];self.longitude.text=[NSStringstringWithFormat:@"%f",new

objective-c - 如何在 Objective-C 中为 BOOL 指针赋值?

我对如何为BOOL指针赋值有点困惑?这是我的代码:-(void)locationManager:(CLLocationManager*)managerdidUpdateToLocation:(CLLocation*)newLocationfromLocation:(CLLocation*)oldLocation{self.latitude.text=[NSStringstringWithFormat:@"%f",newLocation.coordinate.latitude];self.longitude.text=[NSStringstringWithFormat:@"%f",new