English 中文(简体)
A. 创建一套办法 从Xml文档中提取所有数据的观点
原标题:Creating a Scroll View that pulls all data from an xml file

我试图制作一个“简单”的光电灯。 最终产品将是一系列图像,可以点击,获取更多的信息。 有关图像的图像和数据都存放在XML档案的网站上。

我可以得出这样的信息,即把Xml装入一个表层,将Xml项目标题作为电池标签,然后在你点击囚室时,就该项目的其余细节提出了详细的看法。 我可以把xml装上桌面,而没有多少问题。 看来,我不能将这一进程转化为滚动观点。 之后是,该图丽和其他一些类似内容是为了达到这一结果。

我研究了pple提供的UIScrollView实例和几十个YouTube视频和博客论文,内容是执行滚动观点,但我尚未找到任何文件说明数据是从xml中提取的。 滚动观点也正在形成,因此,滚动观点中的页数需要从xml中所含项目的数量中动态地装上(类似于表格概览如何知道根据项目计数将产生多少行)。

I have made a scroll view app that loads 3 pages at a time and loops, like in this tutorial. (Half way down there is a section labeled 3 Pages Only.) This app, along with the Page Control sample that Apple provides, defines the number of pages that are to be displayed, they don t pull from the plist or xml data how many items there are and adjust accordingly.

I don t know that my existing code will be of any use to anyone as it s almost identical to the related tutorials listed above. If someone wants to see something specific, let me know and I ll post it.

谁能帮助我指出,我需要采取哪些步骤来创造这种希望? 如果我能获得我的Xml数据,以便列入滚动观点(每个项目在自己的网页上),并能够动态地确定页数,那么,我就能够加以调整,使之包括图像和担心,使之“易于”。

最佳回答

on! • 为其源代码提供unt,并适当使用 t。 我不得不在5月份工作,但工作不多。 将其转换为iPad与改变测量一样简单。 如果有人问我如何做这项工作,让我知道。 http://ontwik.com/objective-c/using-nsxmlparser-to-pull-uiimages-off-the-web/"rel=“nofollow”>

问题回答

暂无回答




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签