Mallikarjun Hanagandi
Mallikarjun Hanagandi

Reputation: 510

What is the correct way to use NSLocalizedString?

subjectLabel.text = NSLocalizedString(@"Kind Information", @"Info Label");

or

message.text= NSLocalizedString(@"Something Message",nil);

which is the correct one and what is the difference between these 2 examples?

Upvotes: 0

Views: 443

Answers (1)

Shehata Gamal
Shehata Gamal

Reputation: 100541

The correct way is

 subjectLabel.text = NSLocalizedString(@"Kind Information", @"Info Label");

enter image description here

Upvotes: 1

Related Questions