-1

I have one UITextView for which text will change according to the selection by user. Now I want to add a bullet at the start of every sentence. How would this be achieved?

Thanks a lot in advance.

Max MacLeod
  • 25,335
  • 12
  • 98
  • 129
Aakil Ladhani
  • 984
  • 8
  • 31

2 Answers2

3

check this code described in this thread Bullet list and Numbered list in UITextView,

NSArray * items = [[NSArray alloc] initWithObjects:@"Mittal",@"Seema",@"Sonal", nil];
NSMutableString * bulletList = [NSMutableString stringWithCapacity:items.count*30];
for (NSString * s in items)
{
    [bulletList appendFormat:@"\u2022 %@\n", s];
}
Community
  • 1
  • 1
Banker Mittal
  • 1,858
  • 14
  • 25
0

I should you must look into this link. It will contain how to display the numbered list in UITextView . There is also one more link i want to tell you.

Community
  • 1
  • 1
Anil Kothari
  • 7,593
  • 4
  • 18
  • 25