iOS App Development - Objective C
In the last App Development blog I discussed workflow tools that come with being an Apple Developer. Check it out [here].
This time I’ll be talking about Apples guide with learning Objective-C, which is the coding language, used for iOS apps. Check out the full guide [here].
I only have experience in coding XML, HTML and CSS so there is no question that jumping into Objective-C is difficult. Luckily apple’s guide does make it fairly easy. One of the great things the guide mentions is that if you are new to object oriented languages then just think of an object as a structure with functions associated with it.
The next section of the guide tells you the benefits of using Objective-C over other object-oriented languages. The main benefit is that the language is dynamic. This means that it permits the apps behavior to be determined while running. It gets it’s dynamism from 3 things. Dynamic Typing: This allows for any type of object to be substituted at runtime and lets runtime factors determine what objects should be used in your code. This gives flexibility to an app, however also takes away data integrity. Dynamic Binding: defers the decision of which method to call until runtime. Dynamic Loading: allows for the app to load executable code and resources as they are needed, instead of having to load everything at once. This saves on battery life and memory usage.
The next part of the guide discuses Classes and Objects. From it I learned the 3 main extension types. They are .h – Header Files, which contain class, type, function and constant declarations. .m – source files. A source file with this extension can contain both Objective-C and C code. .mm – Source Files. A source file with this extension can contain C++ code in addition to Objective-C and C Code. The guide says to only use this extension if you actually refer to C++ classes or features from your Objective-C code. I would recommend checking out this section of the guide to help you understand the basics of Objective-C.
The guide is fairly long and is a lot to take in at once so I will be writing more about it soon.














