My view controller's name is RouteToStationViewController, in this view controller I got a warning when I tried to compile and that caused a crash later, my relevant code is:
- (void)loadView {
    [self setMapView:[[[RMMapView alloc]initWithFrame:CGRectMake(0.0, 0.0, 700, 700)]autorelease]]; //this line cause warning
    [mapView2 setBackgroundColor:[UIColor blackColor]];
    self.view = mapView2;
}
The warning I got is:
warning开发者_如何学C: 'RouteToStationViewController' may not respond to '-setMapView:'
I could be wrong but if your synthesizing mapView2, wouldn't the appropiate set function be:
[self setMapView2:args];
Do you have a property for the map set up in your .h
property(nonamtoic, retain) id* mapView;
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论