在ios中进行Html渲染

时间:2012-11-11 13:15:43

标签: html ios

为了在我的ios应用程序的描述部分中呈现html标签。即时通讯使用“核心文字扩展” 通常它是100%工作。 但有时它不起作用。它显示一个空白部分。 前 - :

  

COMEC DE SELECTION«ARTWIGO»

评论ÇAMARCHE?

但是et objectifsducomitédesélection

但是denotrecomitédesélectionestd'opérerunchoix,réfléchietcohérent,desartistesprésentésparARTWIGO; ceci,afindepréserverlaqualitéetleniveaunécessairesausuccèsdel'application et donc,de garantir la promotion des artistes。
Cetteélectiontient comptedecritèrespécifiquesàchaquetype d'expression artistique。
Lecomitéstosomposédespécialistes,indépendants,reconnus dans chaquedomaineinsentépar«Artwigo»et venant d'universdifférents;

文作者信息,共有11个人民共和国,男女同性恋者: /> - 3 membres«fondateurs»composant le bureau
- 6 membres composantlecomitéconsultatif。
Christine Jamart,rédactriceenchef de l'ArtMême。 Bruxelles
Carine Fol,Directrice Artistique de La Centrale Electrique。 Bruxelles
JoëlBenzakin,Bela Edition。 Bruxelles
Jean-Louis Godefroid,Directeur Espace Contretype。 Bruxelles
AndréGoldberg,Resonsable Secteur Arts Plastiques au Center Culturel Jacques Franck。 Bruxelles
Emmanuel d'Autreppe,负责艺术家当代艺术展(艺术当代艺术家)。 Liège

La Composition du bureauducomitéestla suivante:
Le DirecteurduComité:Jean-FrançoisPicaudLaethier de Morfouace
LaSerteétairegénérale:Carole de Vleeschouwer
报告人:JoëlVanAudenhaege

委员会发言人委员会发言人委员会发言人委员会发言人委员会委员ne sont pas fournis aux candidats。
Les candidats sontjusteinformés,par email,de l'acceptation ou du rejet de leur candidature parlaSecrétairegénérale。
Référencejfplm08-10-2012

我使用下面的代码结构渲染这个

  

htmlText = [htmlText stringByReplacingOccurrencesOfString:@“''”withString:@“'”];       NSData * data = [htmlText dataUsingEncoding:NSUTF8StringEncoding];       NSAttributedString * string = [[NSAttributedString alloc] initWithHTML:data options:nil documentAttributes:NULL];

[DTAttributedTextContentView setLayerClass:[CATiledLayer class]];
DTAttributedTextView  *_textView = [[DTAttributedTextView alloc] initWithFrame:frame];
_textView.textDelegate = self;
_textView.attributedString = string;
[self.view addSubview:_textView];

我不知道原因,但它没有正确呈现 是解决这个问题的任何解决方案 谢谢

0 个答案:

没有答案