English 中文(简体)
IDWebView或核心文本
原标题:UIWebView or Core Text
  • 时间:2012-01-12 20:52:18
  •  标签:
  • ios
  • ios5

新到目标C和IOS。

我写了一封信,从PHP服务器上通过JSON收集数据。 在高层次上,这种数据往往存在于包含不同类型数据的阵列(标题、正体文字、某些需要像斜体这样的格式的数据类型等)。 为了翻开一页,我计划仅仅走阵列,改变篇幅,把案文作为新的数据要素加以编排(即,这是一个标题,使之具有大胆和更大的意义......这只是一个小标题,使斜体化等等)。

我需要以单一观点展示案文(并照搬一些图像)。 申请在接收JSON(例如,何时、何时、或多头条线显示)之前就掌握了数据的结构。 我可以、也可能不想从已印发的文本中捕获行动(即点击一条线 sp新观点等)。

What do people typically do? I know Core Text is out there, and, from what I ve seen, it s fairly difficult to work with--and, even the tutorials produce pretty bland formatting. I ve also seen indication that people just use a UIWebView and generate the HTML on the fly and just display it using HTML.

如果是, 观点是最佳和最容易的解决办法,我很可能就是这样做。 但是,我也不想使用一种被fr塞的技术,否则我将发现道路有严重限制。 这似乎也只是一个简单的网页(部分)。 但是,也许人们拿到的工具做些什么(当然,超文本的确做得好些)。

Thoughts?

问题回答

I certainly recommend to use a UIWebView, unless you re already familiar with CoreText.

我目前正在使用网络观点,在我的申请中显示一个格式化的记录。 我提出了几种方法,它们都制定了专门的超文本代码,然后将超文本改为NSMutableString。 缩略语 允许你轻易改变内容。

由于安保科完全可以使用,产生风格的网页根本不难。

Java版也可使用,这样可以把你的观点推向上,像把网络观点引向执行一些 Java本一样容易。 此外,用文字写法也给你带来了许多其他特点。





相关问题
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, ...

热门标签