[Cpp] // file name and type NSString * path = [[NSBundle mainBundle] pathForResource: @ "xls1" ofType: @ "xls"]; // obtain the NSData * data = [[NSData alloc] initWithContentsOfFile: path]; NSString * string = [[NSString alloc] initWithData: data encoding: NSUTF8StringEncoding]; NSLog (@ "% @", string); UIWebView * webView = [[UIWebView alloc] initWithFrame: CGRectMake (0, 55,320,300)]; webView. delegate = self; webView. multipleTouchEnabled = YES; webView. scalesPageToFit = YES; NSURL * url = [NSURL fileURLWithPath: path]; NSURLRequest * request = [NSURLRequest requestWithURL: url]; [webView loadRequest: request]; [self. view addSubview: webView]; // file name and type NSString * path = [[NSBundle mainBundle] pathForResource: @ "xls1" ofType: @ "xls"]; // obtain the content www.2cto.com NSData * data = [[NSData alloc] initWithContentsOfFile: path]; NSString * string = [[NSString alloc] initWithData: data encoding: NSUTF8StringEncoding]; NSLog (@ "% @", string); UIWebView * webView = [[UIWebView alloc] initWithFrame: CGRectMake (0, 55,320,300)]; webView. delegate = self; webView. multipleTouchEnabled = YES; webView. scalesPageToFit = YES; NSURL * url = [NSURL fileURLWithPath: path]; NSURLRequest * request = [NSURLRequest requestWithURL: url]; [webView loadRequest: request]; [self. view addSubview: webView];