tags:

views:

15

answers:

1

Hi all, i am using TTTextBarController from Three20 library.

i want to count the number of characters,which user going to write in this control. And have to limit maximum number of character to 500. User should not exceed than the 500 characters.

How can i achieve this.

Regards

A: 

Solved

int len = textBar.textEditor.text.length ; NSLog(@" len = %d", len); if (len >=160) {

                      //do something here
            }

else { //do something here }

shishir.bobby