我应该使用哪个View类?

时间:2022-09-10 23:35:11

I has been visiting your Blog regularly, and learned a lot from it. Now I'm troubled in a project. I hope you can give me some suggestion.

我定期访问你的博客,并从中学到了很多东西。现在我在一个项目中感到困扰。我希望你能给我一些建议。

I want to make a interface of the news APP, which can shows the news title, content and pictures. The picture in the default condition will zoom out and appear with the news title and content in the interface. And the right corner of the picture has a symbal “plus”. When click “plus” ,the picture will show in full screen as in the attachment. Just like the following picture shows.

我想制作新闻APP的界面,它可以显示新闻标题,内容和图片。默认条件下的图片将缩小并显示界面中的新闻标题和内容。而图片的右角有一个符号“加”。单击“加号”时,图片将以附件中的全屏显示。如下图所示。

Which View Class should I use to make this interface.

我应该使用哪个View类来创建此接口。

http://images.weiphone.com/attachments/Day_100412/36_456164_b20b313f274de05.jpg

http://images.weiphone.com/attachments/Day_100412/36_456164_b20b313f274de05.jpg

2 个解决方案

#1


0  

For the actual content, it'd be best to use a UIWebView. Then of course you need the UINavigationController and probably a UITableViewController to list the topics.

对于实际内容,最好使用UIWebView。那么你当然需要UINavigationController和UITableViewController来列出主题。

#2


0  

If you use a UIWebView (the best way to control all the formatting) then all of your content is HTML/Javascript/CSS. You can include a javascript library (jQuery or whatever you like best) and then do your picture zoom in Javascript. http://www.jqtouch.com/ is a library of UI elements for iPhone that might be helpful.

如果您使用UIWebView(控制所有格式的最佳方式),那么您的所有内容都是HTML / Javascript / CSS。你可以包括一个javascript库(jQuery或你最喜欢的任何东西),然后你的图片放大Javascript。 http://www.jqtouch.com/是一个iPhone的UI元素库,可能会有所帮助。

If all of your articles will have a picture, you could add a UIImageView to your view and then either scale it or load a separate image. But if all of your content is coming from a web server, then it is probably easier to use the javascript approach.

如果您的所有文章都有图片,您可以在视图中添加UIImageView,然后对其进行缩放或加载单独的图像。但是,如果您的所有内容都来自Web服务器,那么使用javascript方法可能更容易。

#1


0  

For the actual content, it'd be best to use a UIWebView. Then of course you need the UINavigationController and probably a UITableViewController to list the topics.

对于实际内容,最好使用UIWebView。那么你当然需要UINavigationController和UITableViewController来列出主题。

#2


0  

If you use a UIWebView (the best way to control all the formatting) then all of your content is HTML/Javascript/CSS. You can include a javascript library (jQuery or whatever you like best) and then do your picture zoom in Javascript. http://www.jqtouch.com/ is a library of UI elements for iPhone that might be helpful.

如果您使用UIWebView(控制所有格式的最佳方式),那么您的所有内容都是HTML / Javascript / CSS。你可以包括一个javascript库(jQuery或你最喜欢的任何东西),然后你的图片放大Javascript。 http://www.jqtouch.com/是一个iPhone的UI元素库,可能会有所帮助。

If all of your articles will have a picture, you could add a UIImageView to your view and then either scale it or load a separate image. But if all of your content is coming from a web server, then it is probably easier to use the javascript approach.

如果您的所有文章都有图片,您可以在视图中添加UIImageView,然后对其进行缩放或加载单独的图像。但是,如果您的所有内容都来自Web服务器,那么使用javascript方法可能更容易。