将PDF加载到UIWebView时发生内存泄漏

时间:2015-02-27 12:07:01

标签: ios pdf memory-leaks uiwebview

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.webView.delegate = self;
    NSString *path = [[NSBundle mainBundle] pathForResource:@"Abtretung" ofType:@"pdf"];
    NSURL *url = [NSURL fileURLWithPath:path];
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
    [self.webView loadRequest:request];
}

在模拟器上没关系,但在设备上有内存泄漏。 enter image description here

0 个答案:

没有答案