Using Xcode A Beginner’s Tutorial Erin Green. This tutorial will walk you through Xcode, a software development tool for Apple’s iOS applications – We.

Slides:



Advertisements
Similar presentations
Chapter 1: Introduction. Contents Whats New in Dreamweaver CS4? The Dreamweaver CS4 Interface Setting Up a Site Creating a Web Page Adding Text to Your.
Advertisements

A tour of new features introducing Peak Inside Windows 8.
© 2010 Delmar, Cengage Learning Chapter 1 Getting Started with Dreamweaver.
Introduction to Objective-C and Xcode (Part 1) FA 175 Intro to Mobile App Development.
© by Pearson Education, Inc. All Rights Reserved.
Building Web Pages With Microsoft Office. Introduction This tutorial is for the beginning web builder. It utilizes software that you already have, Microsoft.
Friday, August 29, 2014 CSCI 351 – Mobile Applications Development.
© 2010 IBM Corporation IBM Experience Modeler - Theme Editor Installing Python Image Library Presenter’s Name - Presenter’s Title DD Month Year.
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
Exploring the Basics of Windows XP
SCERSIG: Creating Android Apps with App Inventor 26 October 2011 Ric Paul, Health Services Library, Southampton.
Introduction to Computers I A presentation of the Elmhurst Public Library.
Computer for Health Sciences
Introduction to. What is Office 365 Office 365 is the same Office you already know and use every day. Office 365 is powered by “the cloud” which is a.
TC2-Computer Literacy Mr. Sencer February 8, 2010.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
Chapter 3 Navigating a Project Goals & Objectives 1.Get familiar with the navigation of the project. How is everything structured? What settings can you.
11 Games and Content Session 4.1. Session Overview  Show how games are made up of program code and content  Find out about the content management system.
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application.
The Basics  Operating systems (OS) can help computer users do many things, like managing and manipulating files and folders.  Operating systems also.
Introducing Dreamweaver MX 2004
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Intro to the Xcode IDE and the iOS SDK CSE 391 Fall 2012 Tony Scarlatos.
CIS 205—Web Design & Development Flash Chapter 1 Getting Started with Adobe Flash CS3.
Getting Started with Application Software
Download Dropbox Download should start immediately Save download file:
Section 2 Software.
Introduction to Arrays. definitions and things to consider… This presentation is designed to give a simple demonstration of array and object visualizations.
Dreamweaver An introduction to Dreamweaver by a beginner who can show you the rudiments of quickly and easily creating a web site. An attempt to offer.
Session 1 SESSION 1 Working with Dreamweaver 8.0.
CHAPTER TEN AUTHORING.
Computing Fundamentals Module Lesson 3 — Changing Settings and Customizing the Desktop Computer Literacy BASICS.
Presented by Graduate Design Group 2 Meredith, Jennifer, Cammay and Diane.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Folio3 IPhone Training Session 1 Presenter: Imam Raza.
Mobile Device Programming
IOS with Swift Hello world app.
Develop iphone application Using Xcode and User Interface Design Ruimin Cai 2011.Sept.22.
Introduction to Computer in Technology. Internet Discovery Were going to define several terms that are common in Computers and Technology One way to find.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Adobe Flash CS4 – Illustrated Unit A: Getting Started with Adobe Flash.
Getting to Know Your Computer Your File System Applications What’s running on your machine Its own devices Networking.
Hardware/Software Basics Test
Operating Systems. An operating system (os) is a software program that enables the computer hardware to communicate and operate with the computer software.
CMPF124 Personal Productivity With Information Technology Chapter 1 – Part 2 Introduction to Windows Operating Systems Manipulating Windows GUI CMPF 124.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Motion Graphics & Animation.
Folio3 IPhone Training Session 2 Testing App on device Presenter: Imam Raza.
CHANGING THE VOLUME Click the volume icon in the bottom right hand corner of the screen.
Intoduction to Andriod studio Environment With a hello world program.
Explore GNOME The easy way, using a live CD By Carl Weisheit.
Hardware/Software Basics Test Get out your DIY Test Review.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
1 Microsoft Office 2010 Basics and the Internet Microsoft Office 2010 Introductory Pasewark & Pasewark.
Troubleshooting Dashhawk Issues. Here's what you have to do to have the DashHawk run properly Go to the ACTUAL PROGRAM file (not the short cut)
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
Adobe Flash Professional CS5 – Illustrated Unit A: Getting Started with Adobe Flash Professional.
Chapter 2 – Introduction to Windows Operating System II Manipulating Windows GUI 1CMPF112 Computing Skills for Engineers.
Computer Literacy BASICS
Configuring Windows 10 for Your Studio
Introduction to Computers
Lecture 4 : Windows 7 By MSc. Manar Joundy Hazar 2017
Introduction to Computers
Introduction to Computer Basics Part 2
Managing Your Literature Search Using Zotero
RefWorks Presented by Suzanne van den Hoogen
Download from Zotero Home Page
Apple Xcode with Swift Demo
Windows Operating System
Presentation transcript:

Using Xcode A Beginner’s Tutorial Erin Green

This tutorial will walk you through Xcode, a software development tool for Apple’s iOS applications – We will explore its different parts and their functions – This tutorial will teach you how to use Xcode, but not how to build an app. To build an app, you need to know Objective-C.

Why should I learn this? Learning the ins and outs of Xcode will help you to be more comfortable if you decide to attempt Objective-C later. Lots of libraries are creating apps to promote themselves and connect with their patrons.

Before We Begin… You need a computer running Mac OS 10.6 or better A familiarity with programming helps Download the Xcode installer from the Apple app store The current version available is Xcode 4 It’s free! Open the.dmg file and install to your hard drive

Useful Terms Objective-C: the programming language used to write iOS applications, based on C and using object oriented programming methods Object: a collection of code with its data and ways to manipulate that data

Useful Terms View: how your program presents information to the user Model: how your data is represented inside of your application – Like a card catalog behind the scenes of your app – A ‘model object’ would be an individual card

Let’s Start a New Project Open Xcode in your applications folder Choose File  New  New Project Choose your app template

App Templates Master-Detail App: Like the iOS app, works on parent/child relationships Open GL: allows for 3D hardware and animation timers. Good for games. Page-Based: For apps with 2 views, such as the Maps app. 1 main page and 1 details/info page Single View: A single screen. Fairly simple apps with the views remaining on one ”background”

App Templates, Pt 2 Tabbed: Like the iPod app, with lots of different ways to view the same database items Utility: Like the weather app, a main view and a configuration view Empty: You build everything from scratch

Starting an App Choose the name you want for your app Click ‘Next’ Choose a folder in which to save your app Finally, choose your device Writing a universal iOS app is more difficult than writing for just one device

This is what your screen looks like now….

The main parts we’ll be focusing on… 1. Navigator Panel 3. Libraries 2. Inspector Panel

Navigator Panel

The Classes folder contains two objects: - The App Delegate - The View Controller The extensions: -.h = header, defines object -.m= main/body -.xib= XML interface builder

The App Delegate Handles starting and ending your app Serves as a go-between between iOS and your app – Hands off control to your code after starting

The View Controller Handles everything that shows up on screen Handles all the info that the onscreen objects need to display themselves Translates between the view and the model Responds to user input and uses that to change model data – Responsible for updating view from the model

To help visualize… From developer.apple.com

XML Interface Builder This is where you lay out graphic views The view controller knows how to talk to the objects that have been created here Lots of formatting options

Supporting Files, Pt. 1 These are system files.plist = property list Appname-Info.plist = contains info about your app for the iOS. It is an XML file that includes the options you put on your app (which device, etc.) InfoPlist.strings = helps to internationalize your app -Language translation cues -.strings is any text

Supporting Files, Pt. 2 Main.m = low level. Starts app and gives to the App Delegate. Never change this file..pch = pre-compiled header Appname-Prefix.pch = generated by the system to speed up builds

Frameworks Frameworks contains a lot of already written code provided by the system - A library of code bits - Related to the Libraries menu on the right of Xcode UIKit = contains code for everything that interfaces with the user (views) Foundation = alll the components used to build the model CoreGraphics = handles drawing on the screen

Products Where built apps are stored

Inspector Panel This area contains utilities panels that let you change properties of your app’s view objects, like: Colors Sizes Images Button actions

Libraries Different goodies depending on which icon you click – From left to right: File templates Code snippets View Objects Media/Images

Tips and Tricks If you’re unsure about what a piece of code does, you can get help from Xcode: – Hold ‘Option’ and click on the mystery code piece – A “quick help” balloon will appear with a definition

Tips and Tricks You can also click in the upper right corner on the Inspector Panel to get the same help. While you’re coding, Xcode will often begin to auto-complete your code. Select what you want from the list it gives. It’s a good time-saver.

References For additional help, you can try: Mark, D., & LaMarche, J. (2009). Beginning iPhone 3 development: Exploring the iPhone SDK. Berkeley, CA: Apress. Or The Apple Developer web site at

Now you’re ready to begin experimenting in Objective-C using Xcode. Have fun!