【发布时间】:2013-10-06 05:19:49
【问题描述】:
所以我让用户登录到 facebook,然后我将他们的 fb 照片保存到我的应用程序中。这在我的带有 iOS 7 的 iPhone 5 上完美运行,但我只是想看看小屏幕的效果如何,所以我拿出带有 iOS 5 的 iPhone 4。还没有尝试过 iOS 6。我对目标 c/ 很陌生xcode 并开始使用 xcode 5 beta 和 iOS 7 进行开发。对于版本 ,我需要做些不同的事情吗
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
// As chuncks of the image are received, we build our data file
[imageData appendData:data];
}
// Called when the entire image is finished downloading
- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
// Set the image in the header imageView
profilePic.image = [UIImage imageWithData:imageData];
NSLog(@"%@",profilePic.image);
}
编辑:
imageData 有数据,profilePic.image 返回一个带有 NSLog 的 uiimage
另外,我需要为 5 之前的 iPhone 制作新的故事板吗?
【问题讨论】:
标签: objective-c ios5 ios7