objective c - <hr> separation in UITextView [iOS ] -


is there easy way insert <hr> separation in uitextview ?

i tried this, it's not pretty :

[texttoinclude appendstring:[nsstring stringwithformat:@"________________________________________ \n total: %0.3f", total]]; [self.myuitextview settext:texttoinclude]; 

finally, uitextview "read-only", used uiwebview, doing :

 nsstring *contentview = [[nsstring alloc] init];  contentview = [nsstring stringwithformat:@"<html><body ><p style=\"color:grey; font-style:italic;\">some datas</p><hr/><p style=\"font-size:14px;\">  total: %0.3f </p></body></html>", total];  [self.myuitextview loadhtmlstring:contentview baseurl:nil];  [self webviewdidfinishload:self.existingentries]; 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -