-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
  • 26,115
  • 13
  • 104
  • 132
Aakil Ladhani
  • 984
  • 9
  • 32

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,918
  • 14
  • 26
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,653
  • 4
  • 20
  • 25