我正在尝试创建一个简单的应用程序,该应用程序将显示每天发布的图像。然而,图像的名称每天都在变化。
这是我到目前为止所拥有的。
--- .h file
{ UIWebView *webView; }
@property (nonatomic, strong) IBOutlet UIWebView *webView;
@end
--- .m file
@implementation AWCViewController
@synthesize webView;
- (void)viewDidLoad {
[super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib.
NSURLRequest * request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"url/images/image1.png"]];
[self.webView loadRequest:request];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end