0

所以我让用户登录到 facebook,然后我将他们的 fb 照片保存到我的应用程序中。这在我的带有 iOS 7 的 iPhone 5 上完美运行,但我只是想看看小屏幕的效果如何,所以我拿出带有 iOS 5 的 iPhone 4。还没有尝试过 iOS 6。我对目标 c/ 很陌生xcode 并开始使用 xcode 5 beta 和 iOS 7 进行开发。对于 < 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 制作新的故事板吗?

4

1 回答 1

0

在 iOS 的每个版本中,通常都会有相当多的更改,并且在特定版本中运行的应用程序在另一个版本中中断的情况并不少见。

我的建议是你仔细阅读 Apple 版本 6 和 7 的发行说明,并检查是否有适用于 iOS 7 而不是 iOS 5 的东西。

顺便说一句,你的 iPhone 4 中是否有 iOS 5 是出于某种特殊原因?

我的猜测是应该没有那么多用户使用这么旧的版本,我将我的升级到 iOS7,我想绝大多数没有这样做的人至少有版本 6。

于 2013-10-06T06:03:16.380 回答