Load a list of localized strings at once in IOS
Posted
by
Victor Ronin
on Stack Overflow
See other posts from Stack Overflow
or by Victor Ronin
Published on 2012-09-03T21:35:17Z
Indexed on
2012/09/03
21:37 UTC
Read the original article
Hit count: 250
ios
I want to show a table with the list of strings which are localized.
The straightforward method would be:
a) Point data source to my ViewController
b) Define an array
c) Allocate the array in my ViewController and init (arrayWithObjects) it with the strings from localized resources (NSLocalizedString)
d) Use this array in UITableViewDataSource delegated methods
Mainly my concern is item b). The construction looks quite heavy and I wonder whether I can somehow specify and load whole list of localized string at once.
© Stack Overflow or respective owner