OpenFlow :: 如何流式传输图像
我正在尝试在 iPhone 应用程序中使用 OpenFlow (http://apparentlogic.com/openflow/)从我的服务器流式传输文件。我该怎么做?我应该使用 NSOperationQueue 吗?
到目前为止我已经能够: * 使用本地文件 * 使用 Flickr 的演示(使用 Flickr API 和库)
代码加载本地图像:
NSString *imageName;
for (int i=0; i < 30; i++) {
imageName = [[NSString alloc] initWithFormat:@"%d.jpg", i];
[(AFOpenFlowView *)self.view setImage:[UIImage imageNamed:imageName] forIndex:i];
[imageName release];
}
[(AFOpenFlowView *)self.view setNumberOfImages:10];
I am trying to use OpenFlow (http://apparentlogic.com/openflow/) in an iPhone App to stream files off of my server. How can I do this? Should I be using NSOperationQueue?
So far I have been able to:
* Use local files
* Use their demo from Flickr (which uses the Flickr API and library)
Code to load local images:
NSString *imageName;
for (int i=0; i < 30; i++) {
imageName = [[NSString alloc] initWithFormat:@"%d.jpg", i];
[(AFOpenFlowView *)self.view setImage:[UIImage imageNamed:imageName] forIndex:i];
[imageName release];
}
[(AFOpenFlowView *)self.view setNumberOfImages:10];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也需要做这样的事情。
我打算尝试这个博客的建议:
http://blogs.oreilly.com/digitalmedia/2008/02/creating-an-uiimage-from-a-url.html
看看这是否适合您!
I also need to do something like this too.
I was going to try the suggestion from this blog:
http://blogs.oreilly.com/digitalmedia/2008/02/creating-an-uiimage-from-a-url.html
See if that works for you!