Xcode For iOS Basics

You should already have a basic knowledge of programming constructs from any programming language. They include:

  1. Variables / Arrays (e.g., firstName=”John”, fruitsArray=[“apple”, “pear”, “orange”])
  2. Conditional Statements (e.g., if(true){do this}else{do this})
  3. Functions (e.g., function addNumber () { a + b })
  4. Looping (e.g., for (i=0; i<5; i++){repeat this line 5 times})

If you don’t, before you start that training find some resources online, in a classroom or in a book to come up to speed on these concepts. I have a training called the ABC of Programming that can aid you.

Then, you need a basic knowledge of Object Oriented Programming (OOP) concepts. These include:

  1. Properties / Methods (e.g., object.property, object.method, object.event)
  2. Events / Event Listeners (e.g., object.event, object.myEventListener{do this when this event happens})
  3. Packages (e.g., com.mycompanyname.appname)
  4. Inner and Abstract Classes
  5. Constructors
  6. Access Modifiers (e.g., private, public, final, static)
  7. Objects (e.g., myObject object = new Object (); )
  8. Inheritance
  9. Override (e.g., @Override)
  10. Composition
  11. Interfaces (e.g., myClass implements myInterface)
  12. Encapsulation
  13. Polymorphisms
  14. Collections

Then, you need to understand these programming constructs and OOP concepts as it relates to Java. What are the similarities and differences with other programming languages? Examples include:

  1. How to cast one variable type into another (e.g., TextView myText = (TextView)…)
  2. What are the various data types? (e.g., Double, Float)
  3. What are the various ways to create arrays (e.g., Array, ArrayList, HashMap)