中华联合和监控不在缩小图标
This commit is contained in:
Generated
+11
-2
@@ -11,7 +11,6 @@
|
||||
#import "MATraceReplayOverlay+Addition.h"
|
||||
#import <GLKit/GLKit.h>
|
||||
#import <OpenGLES/ES2/gl.h>
|
||||
#import <DDCategoryKit_Private/UIImage+DDCategory.h>
|
||||
|
||||
typedef struct _MADrawPoint {
|
||||
float x;
|
||||
@@ -53,7 +52,17 @@ typedef struct _MADrawPoint {
|
||||
_patchLineRender = [[MAPolylineRenderer alloc] initWithPolyline:[traceOverlay getPatchPolyline]];
|
||||
_patchLineRender.strokeColor = _proxyRender.strokeColors.lastObject;
|
||||
|
||||
_carImage = [UIImage dd_imageNamed:@"car_xingshi" bundleName:@"DDMAMapKit_Private" aClass:[self class]];
|
||||
NSString *bundlePath = [[NSBundle bundleForClass:[self class]].resourcePath stringByAppendingPathComponent:@"DDMAMapKit_Private"];
|
||||
NSString *bundleType = @".bundle";
|
||||
if (![bundlePath hasSuffix:bundleType]) {
|
||||
bundlePath = [bundlePath stringByAppendingString:bundleType];
|
||||
}
|
||||
NSBundle *sourceBundle = [NSBundle bundleWithPath:bundlePath];
|
||||
if (sourceBundle == nil) {
|
||||
return nil;
|
||||
}
|
||||
UIImage *image = [UIImage imageNamed:@"car_xingshi" inBundle:sourceBundle compatibleWithTraitCollection:nil];
|
||||
_carImage = image;
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user