I have this code and not loading this page i do not know what happen
in iPad dont work and only show a empty screen when webViewDidFinishLoad finish.
And the iPhone works fine whats wrong?
Because only this link dont works https://www.facebook.com/peopemexico
this is my code:
.h
@interface WebRedesIpad : UIViewController <UIWebViewDelegate>
@property (strong, nonatomic) IBOutlet UIWebView *propNavegador;
.m
- (void)viewDidLoad
{
_propNavegador.delegate=self;
[_propNavegador loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.facebook.com/peopemexico"]]];
}
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
[activityIndicator stopAnimating];
}
您是否已在同一类的.h文件中编写了UIWebViewDelagte?
If it's working in iPhone and not in iPad then you must have not linked variable propNavegador
to iPad storyboard/ NIB files.
You must have attached to only iPhone storyboard/ NIB files.
Please check and let me know.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.