@@ -65,18 +65,18 @@ - (instancetype)init
6565 borderColor: [UIColor lightGrayColor ]
6666 borderWidth: 2.0 ];
6767
68- [_updateRegionButton setBackgroundImage: backgroundImage forState: ASControlStateNormal ];
69- [_updateRegionButton setBackgroundImage: backgroundHiglightedImage forState: ASControlStateHighlighted ];
68+ [_updateRegionButton setBackgroundImage: backgroundImage forState: UIControlStateNormal ];
69+ [_updateRegionButton setBackgroundImage: backgroundHiglightedImage forState: UIControlStateHighlighted ];
7070
71- [_liveMapToggleButton setBackgroundImage: backgroundImage forState: ASControlStateNormal ];
72- [_liveMapToggleButton setBackgroundImage: backgroundHiglightedImage forState: ASControlStateHighlighted ];
71+ [_liveMapToggleButton setBackgroundImage: backgroundImage forState: UIControlStateNormal ];
72+ [_liveMapToggleButton setBackgroundImage: backgroundHiglightedImage forState: UIControlStateHighlighted ];
7373
7474 _updateRegionButton.contentEdgeInsets = UIEdgeInsetsMake (5 , 5 , 5 , 5 );
75- [_updateRegionButton setTitle: @" Update Region" withFont: nil withColor: [UIColor blueColor ] forState: ASControlStateNormal ];
75+ [_updateRegionButton setTitle: @" Update Region" withFont: nil withColor: [UIColor blueColor ] forState: UIControlStateNormal ];
7676
7777 [_updateRegionButton addTarget: self action: @selector (updateRegion ) forControlEvents: ASControlNodeEventTouchUpInside];
7878
79- [_liveMapToggleButton setTitle: [self liveMapStr ] withFont: nil withColor: [UIColor blueColor ] forState: ASControlStateNormal ];
79+ [_liveMapToggleButton setTitle: [self liveMapStr ] withFont: nil withColor: [UIColor blueColor ] forState: UIControlStateNormal ];
8080
8181 [_liveMapToggleButton addTarget: self action: @selector (toggleLiveMap ) forControlEvents: ASControlNodeEventTouchUpInside];
8282
@@ -214,8 +214,8 @@ - (void)toggleLiveMap
214214{
215215 _mapNode.liveMap = !_mapNode.liveMap ;
216216 NSString * const liveMapStr = [self liveMapStr ];
217- [_liveMapToggleButton setTitle: liveMapStr withFont: nil withColor: [UIColor blueColor ] forState: ASControlStateNormal ];
218- [_liveMapToggleButton setTitle: liveMapStr withFont: [UIFont systemFontOfSize: 14 ] withColor: [UIColor blueColor ] forState: ASControlStateHighlighted ];
217+ [_liveMapToggleButton setTitle: liveMapStr withFont: nil withColor: [UIColor blueColor ] forState: UIControlStateNormal ];
218+ [_liveMapToggleButton setTitle: liveMapStr withFont: [UIFont systemFontOfSize: 14 ] withColor: [UIColor blueColor ] forState: UIControlStateHighlighted ];
219219}
220220
221221- (void )updateLocationTextWithMKCoordinateRegion : (MKCoordinateRegion)region
0 commit comments