【问题标题】:EXCEPTION CPMessageException: (null) in uiwebview异常 CPMessageException: (null) in uiwebview
【发布时间】:2012-08-11 13:08:27
【问题描述】:

我是 iPhone 新手,我正在尝试在 UIWebView 中打开 .doc 文件,我编写了以下代码

NSString *urlAddress = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@.doc", docName] ofType:nil]; 

NSLog(@"in search the document url address: %@", urlAddress);

NSURL *url  = [NSURL fileURLWithPath:urlAddress];
NSURLRequest *requestObj  = [NSURLRequest requestWithURL:url];

[_webView loadRequest:requestObj];

应用程序没有崩溃,但它给了我以下信息:

EXCEPTION CPMessageException: (null)

并加载一个空白页

对这个问题有任何帮助吗?

【问题讨论】:

    标签: iphone ios ipad uiwebview


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-11
    • 1970-01-01
    • 2014-05-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多