开发者

Display an image that's stored locally

开发者 https://www.devze.com 2023-01-23 04:11 出处:网络
I\'m using the following code from Three20 to display a photo/image gallery. Can anyone help with changing the code to display an image that\'s locally stored on the phone instead of on a web server?

I'm using the following code from Three20 to display a photo/image gallery. Can anyone help with changing the code to display an image that's locally stored on the phone instead of on a web server?

[[[MockPhoto alloc]
  initWithURL:@"http://farm4.static.flickr.com/3444/3223645618_13fe36887a_o.jpg"
  smallURL:@"http://farm4.static.flickr.com/3444/3223645618_f5e2fa7fea_t.jpg"
  size:CGSizeMake(320, 480)
  caption:@"This is a caption."] autoreleas开发者_StackOverflow中文版e],


you can make a data base table on which you store the image after been changed to an NSData object

0

精彩评论

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