Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos IOS 8表中的UIWebView未正确显示_Macos_Ipad_Ios8 - Fatal编程技术网

Macos IOS 8表中的UIWebView未正确显示

Macos IOS 8表中的UIWebView未正确显示,macos,ipad,ios8,Macos,Ipad,Ios8,我们最近升级到IOS 8并编译了应用程序 我们看到,在使用UIWebView时,带有文本的表不再显示得很好 有人遇到过这个吗?这是一个已知问题还是一个bug 代码如下: #import "ViewController.h" @interface ViewController () @property (weak, nonatomic) IBOutlet UIWebView *viewWeb; @end @implementation ViewController - (void)view

我们最近升级到IOS 8并编译了应用程序

我们看到,在使用UIWebView时,带有文本的表不再显示得很好

有人遇到过这个吗?这是一个已知问题还是一个bug

代码如下:

#import "ViewController.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIWebView *viewWeb;

@end

@implementation ViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.

NSString* fullPath = @"/Users/deployment/Downloads/table-2.ppt";
[_viewWeb loadData:[NSData dataWithContentsOfFile:fullPath] MIMEType:@"application/vnd.ms-powerpoint" textEncodingName:nil baseURL:nil];
}

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@结束

谢谢


你试过这个密码吗

UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(10.0,10.0,300,300)];
[webView setScalesPageToFit:YES];
webView.backgroundColor=[UIColor clearColor];
NSString *ppt = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"ppt"];
NSURL *pptURL = [NSURL fileURLWithPath:ppt];
NSURLRequest *request = [NSURLRequest requestWithURL:pptURL];
[webView loadRequest:request];
[self.view addSubview:webView];

如果此代码也不适用于您的ppt文件。请共享您的ppt文件。这个代码在我的情况下有效。演示文稿文件可能有问题

是否尝试使用IOS8的WKWebView。@Naveenkumar否,但当前无法批准更改UI视图。。我们想首先知道这是否是IOS8中的一个bug,并看看它是否能被修复。没有人遇到它:?你能分享你的代码吗。。。因此,我将得到更多关于这个问题的澄清,并试图解决这个问题。@Naveenkumar哪一部分?我没有做什么特别的事。。只是使用UIWebViewNope,而不是在IOS8中工作。仅适用于IOS7。图片:ppt:它发生在每一个有表格的ppt上