如何将图像从Parse加载到UIImageView(iOS) [英] How to load an image from Parse into a UIImageView (iOS)
问题描述
我可能会问一些很简单的问题,但是我找不到能够帮助我的教程或示例.
I might be asking something really easy, but I can't manage to find a tutorial or example that would help me.
我已经学会了如何从Parse中检索字符串数据,现在我试图检索图像以为这样做会更容易..但是我无法弄清楚.
I have learned how to retrieve string data from Parse and now I am trying to retrieve an image thinking it would be easier.. but I can't figure it out.
我正在尝试在UIImageView
中加载1张图片(每天都会更改),并从Parse.com的数据浏览器中检索图片.
I am trying to load 1 image (that I'll be changing every day) in the UIImageView
, retrieving the image from my data browser in Parse.com.
有人可以帮忙吗?
这是我所做的:
- (void)viewDidLoad {
[super viewDidLoad];
[self performSelector:@selector(retrieveFromParse)];
}
- (void) retrieveFromParse {
PFQuery *retrieveImage = [PFQuery queryWithClassName:@"outfitDay"];
[retrieveImage findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
if (!error) {
loadimageArray = [[NSArray alloc] initWithArray:objects];
}
}];
}
我缺少您指出要加载该信息的UIImageView
的部分.
I am missing the part where you indicate the UIImageView
to load that information.
提前谢谢!
推荐答案
对于任何需要帮助的人!我找到了问题的答案.
For anyone who needs help! I found the answer to my question.
在此示例中找到它: https://parse.com/questions/retrieve-images-from-parse -to-uiimageview
Found it in this example: https://parse.com/questions/retrieve-images-from-parse-to-uiimageview
希望对其他人有帮助!
感谢所有花时间回答我的问题的人!
And thanks to all who took the time to answer my question!
这篇关于如何将图像从Parse加载到UIImageView(iOS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!