Skip to content

Commit

Permalink
Update PYEChartsViews for Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Pluto-Y committed Sep 6, 2016
1 parent 58fb63b commit a544355
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iOS-Echarts/View/PYEchartsView.m
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ - (void)initAll {
}
}
}
#if TARGET_OS_IPHONE
bundlePath = [echartsBundle bundlePath];
#elif TARGET_OS_MAC
bundlePath = [echartsBundle resourcePath];
#endif
NSString *urlString = [echartsBundle pathForResource:@"echarts" ofType:@"html"];
localHtmlContents =[[NSString alloc] initWithContentsOfFile:urlString encoding:NSUTF8StringEncoding error:nil];

Expand Down

0 comments on commit a544355

Please sign in to comment.