アプリに非常に奇妙な問題があります。iOS 6.0 を実行しているすべてのデバイス (iPad を含む) で完全に動作します。また、iOS 6.0.1 では、iPhone と iPod でも期待どおりに動作します。しかし、iPad 6.0.1 ではクラッシュします。
これは、webView を備えた非常に単純なシングルビュー アプリケーションです。これは私の ViewControler.m です:
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
NSURL *url = [NSURL URLWithString:@"http://telefonecke.tumblr.com"];
NSURLRequest *req = [NSURLRequest requestWithURL:url];
[_webView loadRequest:req];
[super viewDidLoad];
}
-(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType {
if ( inType == UIWebViewNavigationTypeLinkClicked ) {
[[UIApplication sharedApplication] openURL:[inRequest URL]];
return NO;
}
return YES;
}
- (void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
[_webView reload];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(willEnterForeground) name:UIApplicationWillEnterForegroundNotification object:nil];
}
- (void)viewDidDisappear:(BOOL)animated{
[super viewDidDisappear:animated];
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationWillEnterForegroundNotification object:nil];
}
- (void)willEnterForeground {
[_webView reload];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
特に iOS 6.0 や他のすべてのデバイスで完全に動作するため、なぜ動作しないのか実際にはわかりません。
すべての提案に感謝します。前もって感謝します!
編集:役立つ場合は、クラッシュレポートもあります。クラッシュレポートについては、ここをクリックしてください