Xcode for Dictionary app

I want to use Xcode to create a Language Dictionary App, I have a spreetsheet list of two deferent language vocabularies. Pease give me an example of a solid dictionary code so I can design my first app.and also what is a good way to upload the lists of words I have on the app's platform.

Foundation has classes for NSDictionary and NSMutableDIctionary, you can find the API’s for objective-c and swift easily either online or via Xcode’s documentation reference. These are basically key-value containers you can use for something like a dictionary app.


// Objective-C  
NSMutableDIctionary * d = [[NSMutableDictionary alloc] init];
  d[@“yes”] = @“oui”;

  NSLog(@“English %@ is %@ in French”, @“yes”, d[@“yes”]);


As for spreadsheet data, you will want to think about what you want or need to do for reading that into your app, and if it makes sense to store it in some other format. Classes NSFileManager, NSData, NSFileHandle, and NSURL might interest you.


You would probably want to do one of the following:

- format a data file that is easy to read when app starts, parse it into a data structure for app reference

- convert your data into a serialized (NSCoder, NSCoding) file structure that foundation can read in directly.


I hope some of this helps, happy coding.

Good examples of dictionaries which may illustrate features that you've overlooked: Midori and imiw.

Xcode for Dictionary app
 
 
Q