Using chars and BOOL

…So, wrapping up the discussion of primitive data…types, let's talk about working with single characters.…Well, these are just using the char data type, meaning not…a word, not a phrase, not a paragraph, just one single character.…Under one byte that can represent any character in the ASCII character set.…This is not unicode.…Notice that we use single quotes for charge it's not double quotes.…But this could represent…not just a letter or an uppercase letter it…could represent a special character or even a digit.…

Although bear in mind if you had a digit like the number 6…here then it is the carried to 6 not the numeric number of 6.…To spit this out in a format strings, well if we have %i for…integers, %f for first, we have %c for characters and much more to it.…Just go ahead on run this one and…they follow all the same rules. Char isn't the very data-type itself.…In Objective-C we also have a boolean data type.…So we want to store a boolean value.…

Something that can be true or false.…Well unlike int float double and char the bool data…

Resume Transcript Auto-Scroll

Author

Released

12/2/2013

There are a lot of programming languages out there, but Objective-C is the best choice for developers who want to develop iOS and OS X apps. This course is your primer. Get the tools you need, learn the structure of Objective-C, and get your first code up and running. Author Simon Allardice also walks you through the Foundation framework, a collection of prewritten code that makes the coding process easier; shows you how to design and build your own classes; and provides memory management techniques—the key to efficient programming. Plus, learn how to make your way around Xcode 5, the app to write, test, and debug Objective-C, and into advanced features like categories, protocols, and dynamic typing.