我已經解決了我的問題! 我剛剛打開amcharts.js
並按CTRL +將它與「gif」一起使用,它返回我後面的名稱: dragIcon.gif dragIconH.gif 這正是我一直在尋找的。
PS。我正在研究一個可以在離線狀態下繪製amcharts的iOS應用程序,因此爲此我下載了amcharts.js
並將其添加到我的項目中,然後創建了我的html
文件,並將其添加到字符串中以用於導入amcharts.js
庫
<script src="amcharts.js" type="text/javascript"></script>
然後我裝我html
到一個UIWebView:你想在你html
這就是爲什麼src="amcharts.js"
工作正常使用本地文件
NSString *path = [[NSBundle mainBundle] bundlePath];
NSURL *baseUrl = [NSURL fileURLWithPath:path]; //URL representation of main project bundle
NSString *htmlPath = [[NSBundle mainBundle] pathForResource:@"chart" ofType:@"html"];
NSError *error;
NSString *htmlStr = [[NSString alloc] initWithContentsOfFile:htmlPath encoding:NSUTF8StringEncoding error:&error];
htmlStr = [NSString stringWithFormat:htmlStr , [self getJSONStringFromDict:dataDict] , baseUrl]; // i do this for insert JSONdata and baseURL into my HTML (see below)
[self loadHTMLString:htmlStr baseURL:baseUrl];
是基本URL的情況下非常重要。
最後!我的滾動條夾點呢? 正如我前面提到的,我下載的文件dargIcon.gif
,並把它添加到我的項目(與我做了amcharts.js
),然後我換成
chart.pathToImages = "http://www.amcharts.com/lib/images/"
與chart.pathToImages = "%@";
%@將與我的基本URL來代替(見代碼如上)
問題解決了。希望這有助於某人。