码迷,mamicode.com
首页 > 移动开发 > 详细

通过APPID从appStore获取应用最新信息

时间:2014-07-06 15:36:26      阅读:366      评论:0      收藏:0      [点我收藏+]

标签:http   color   cti   io   应用   window   

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];


int appid = 414478124;
NSURLRequest *request = [NSURLRequest requestWithURL:URL(@"http://itunes.apple.com/lookup?id=%d",appid)];
NSURLConnection *Connection = [[NSURLConnection alloc]initWithRequest:request delegate:self];


self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}


- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response{
self.receiveData = [NSMutableData data];

}

- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data{
[self.receiveData appendData:data];

}

- (void)connectionDidFinishLoading:(NSURLConnection *)connection{
NSString *receiveStr = [[NSString alloc]initWithData:self.receiveData encoding:NSUTF8StringEncoding];
NSLog(@"%@",receiveStr);
}
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error{


}

通过APPID从appStore获取应用最新信息,布布扣,bubuko.com

通过APPID从appStore获取应用最新信息

标签:http   color   cti   io   应用   window   

原文地址:http://www.cnblogs.com/clumsy1006/p/3825460.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!