红玉西瓜,豫剧红灯记,古诗词
_checkallintroducetextview = [[uitextview alloc] initwithframe:cgrectmake(10, 0, kscreenwidth-20, kscreenheight)];
_checkallintroducetextview.backgroundcolor = self.view.backgroundcolor;
_checkallintroducetextview.returnkeytype=uireturnkeydone;
_checkallintroducetextview.delegate = self;
_checkallintroducetextview.showsverticalscrollindicator = no;
nsattributedstring *attributedstring = [[nsattributedstring alloc] initwithdata:[@"后台返回给你的html格式的字符串" datausingencoding:nsunicodestringencoding] options:@{ nsdocumenttypedocumentattribute: nshtmltextdocumenttype } documentattributes:nil error:nil];
_checkallintroducetextview.attributedtext = attributedstring;
_checkallintroducetextview.textcolor = kcolor_gray_6;
[self.view addsubview:_checkallintroducetextview];
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
iOS 使用UITextField自定义搜索框 实现用户输入完之后“实时搜索”功能
网友评论