¡@

Home 

2014/10/15 ¤U¤È 10:10:09

iphone Programming Glossary: idview

IPhone localization: Is it possible to translate nib files easily without having to copy the nib for each language?

http://stackoverflow.com/questions/619867/iphone-localization-is-it-possible-to-translate-nib-files-easily-without-having

loop through each view and then set the text on them static void translateView NSBundle bundle UIView view id idView view if idView respondsToSelector @selector text view respondsToSelector @selector setText idView setText bundle localizedStringForKey.. each view and then set the text on them static void translateView NSBundle bundle UIView view id idView view if idView respondsToSelector @selector text view respondsToSelector @selector setText idView setText bundle localizedStringForKey.. UIView view id idView view if idView respondsToSelector @selector text view respondsToSelector @selector setText idView setText bundle localizedStringForKey idView text value nil table nil if idView respondsToSelector @selector title view respondsToSelector..