Show Menu

Have you had a collection of objects that you want to by name? Lets say you had an object that contains contact info for a person. If I wanted to see the contact information for somebody, I’d want to just tell something, “Hey, give me Jimmy’s contact info”, and it would get it for me. That is exactly what NSDictionary does for you. NSDictionary is way to perform easy lookups for objects stored in the dictionary, via a key of

When you’re building an app you usually need some values to remain the same for the whole runtime of the app. Instead of using those values everywhere inside your app it is better to define a constant and use the constant instead. It will make your life easier when you want to change the value everywhere in the code and if you give it a good name it will make your code more readable. In this post we’re going to