开发者

OpenFlow :: Howto Stream Images

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 &开发者_如何转开发lt; 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 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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜