我在 ios webbView 上显示图片链接时遇到了一些问题。发生的事情是我在我的 xib 文件中放置了一个 webView 并将其与插座连接,但我仍然无法显示图像..
ViewController.m 中的代码
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
NSString *urlLink = @"http://www.novasoftware.se/ImgGen/schedulegenerator.aspx?format=png&schoolid=90645/sv-se&type=1&id={FDCE3A18-B5F6-45F4-B9B2-EA9171290F71}&period=&week=41&mode=0&printer=0&colors=32&head=0&clock=0&foot=0&day=0&width=844&height=629&maxwidth=844&maxheight=629";
//Create a URL object.
NSURL *url = [NSURL URLWithString:urlLink];
//URL Requst Object
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
//Load the request in the UIWebView.
[self.webView loadRequest:requestObj];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
如果有人能找出问题所在,我将不胜感激!
最好的问候奥利弗