我试图创建一个简单的应用程序,它会显示每天发布的图像。但是图像的名称每天都在变化。从网站加载图像
这是我到目前为止。
--- .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
那么,什么问题? – fedosov
问题是如何让应用更新图像名称,因为它每天都在变化。例如。今天的图像名称将是223,明天将是224,下一个225. – Apps