views:

99

answers:

1

In my iPhone app, I have a SearchBar and when people type a keyword and click to search, the search result will show in UILabel.

Everything works fine but when I type a keyword which starts with uppercase letters, the search does not work as it should. I know I have to do something but don´t know what.

Anybody have an idea?

+1  A: 

Hi,

May be its trying to match the case as well, try converting the keyword to lower or uppercase and also convert the string with which you are comparing to the same case (lower or upper).

One more option is to specify the search comparison to be case-insensitive, if you are using some built-in functions for that.

Thanks

Mahesh Velaga
How to do that ? please show me.thanks
ok now i found it, i put this linelowercase=[encodedkw lowercaseString];and it work now, thank u so much fr help.....