objective c - NSLocalizedString weird warning -


i'm trying localize app in english , italian.

i got portion of code:

-(ibaction)randomsn{ int text = rand() % 2; switch (text) {     case 0:         textview.text =nslocalizedstring(@"yes", @"sì");         break;     case 1:         textview.text = nslocalizedstring("@no", @"no");         break;     default:         break;   } } 

when go build , run, warnings come up:

warning: passing argument 1 of 'localizedstringforkey:value:table:' incompatible pointer type 

i think says needs table work or? warning shown on second part, when says

            textview.text = nslocalizedstring("@no", @"no"); 

also, when run project, simulator set on english (main language of app italian), typed localizable.strings doesn't appear.

are sure have @ in right place? appears me should be:

textview.text = nslocalizedstring(@"no", @"no"); 

in other words, @ should come before opening ".


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -