¡@

Home 

2014/10/15 ¤U¤È 10:05:43

iphone Programming Glossary: countrysaved

How could I write this if else code checking in a better way? [closed]

http://stackoverflow.com/questions/14663798/how-could-i-write-this-if-else-code-checking-in-a-better-way

checking in a better way closed Is this the best way to write this if else code checking set the default to Italy if countrySaved is null if lang NULL lang @ it otherwise set the correct lang based on the country chosed and saved in nsuserdefaults if.. null if lang NULL lang @ it otherwise set the correct lang based on the country chosed and saved in nsuserdefaults if countrySaved isEqual @ Brazil lang @ br else if countrySaved isEqual @ Spain lang @ es else if countrySaved isEqual @ Italy lang @ it.. lang based on the country chosed and saved in nsuserdefaults if countrySaved isEqual @ Brazil lang @ br else if countrySaved isEqual @ Spain lang @ es else if countrySaved isEqual @ Italy lang @ it else if countrySaved isEqual @ United States lang..