Ios NSLocalizedString在语言之间切换

Ios NSLocalizedString在语言之间切换,ios,uitableview,nslocalizedstring,Ios,Uitableview,Nslocalizedstring,MytableViewCell包含通过My宏本地化的标签: #define NSLocalizedString(key, comment) [[NSBundle mainBundle] localizedStringForKey:(key) value:@"" table:nil] 我正在设置cellforrowatinexpath: cell.label.text = NSLocalizedString(@"CELL_LABEL_TEXT", nil); 我的应用程序已本地化为英语和德语:

My
tableViewCell
包含通过My宏本地化的标签:

#define NSLocalizedString(key, comment) [[NSBundle mainBundle] localizedStringForKey:(key) value:@"" table:nil]
我正在设置
cellforrowatinexpath:

cell.label.text = NSLocalizedString(@"CELL_LABEL_TEXT", nil);
我的应用程序已本地化为英语和德语:

//Localizable.strings (English)
"CELL_LABEL_TEXT" = "cool text";
//Localizable.strings (German)
"CELL_LABEL_TEXT" = "cooler Text";
这不是我的应用程序中本地化的唯一字符串,所有其他字符串都可以正常工作。
但不知何故,标签文本本地化在英语和德语之间(似乎)随机混淆了。。。(5个单元格:en,en,de,en,en)
另一方面,我正在单元格内定位另一个字符串,但该字符串有效…
有人知道为什么会这样吗?
(设备语言为英语)

编辑:

myCustomCell * cell = [tableView dequeueReusableCellWithIdentifier:@"theCell"];

            if (!cell) {
                [tableView registerNib:[UINib nibWithNibName:@"customCell" bundle:nil] forCellReuseIdentifier:@"theCell"];
                cell = [tableView dequeueReusableCellWithIdentifier:@"theCell"];
            }
            cell.timestamp.text = [decoder stringFromDate:[post objectForKey:@"timestamp"] withIdentifier:kDateTimeline];
            cell.postDescription.text = NSLocalizedString(@"CELL_LABEL_TEXT", nil);
            return cell;

你能告诉我们你的整个CyfRoWixRealXPATH:方法吗?你称之为“定义定义NSROLLASEZED字符串(key,注释)”“你的”宏,但是这已经是基础中的宏了。你重新定义了吗?为什么?我称之为“我的”,因为我明确地定义了它。老实说,这只是一个坏习惯。你能给我们看看你的整个CyfRoWixRealXPATH:方法吗?你称之为“定义nSnLasiZeDeStudio(key,注释)”“你的”宏,但是这已经是基础中的宏了。你重新定义了吗?为什么?我称之为“我的”,因为我明确地定义了它。老实说,这只是一个坏习惯。