hi in the new ios11 and xcode9 my old function for check ipad pro doesn't work
UIWebView* webView = [[UIWebView alloc] initWithFrame:CGRectZero];
NSString* userAgent = [webView stringByEvaluatingJavaScriptFromString:@"navigator.userAgent"];
return [userAgent containsString:@"iPhone"] && ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad);
any suggestion for solve?