我試圖創建一個簡單的應用程序,它會顯示每天發佈的圖像。但是圖像的名稱每天都在變化。從網站加載圖像
這是我到目前爲止。
--- .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