2013-09-16 3 views
0

내 응용 프로그램에서 하이 차트를 사용 중입니다. 내가 HTML을로드하는 데 사용하고있는 코드가 표시된 다음은이iOS 하이 차트 통합

enter image description here

과 같이 파일이 구성되어 있습니다.

NSString *path=[[NSBundle mainBundle]pathForResource:@"pieChart" ofType:@"htm"]; 
NSString *html=[NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil]; 
[_webView loadHTMLString:html baseURL:[NSURL fileURLWithPath:path]]; 

하지만 내 웹보기에는 아무 것도로드되지 않습니다. piechart.htm 파일에는 highcharts.js 파일에 대한 참조가 있습니다. highcharts.js 파일이로드되고 있지 않습니다. 이 문제를 해결하도록 도와주세요.

+0

'* html' 당신은'loadHTMLString' 전화'* path'? –

+0

또,'piechart.htm' 또는'piechart.html'입니까? 질문에 코드가 있고 코드가 다른 코드가 있습니다. –

답변

0

당신은 당신의 경로를 아래 사용되어야한다

의 내용은 무엇

NSString *path = [[NSBundle mainBundle] bundlePath];