Advanced app development for ios. Lab 1 Introduction to Mac OS X and ios app development. Gdańsk 2015 Tomasz Idzi



Similar documents
The Basics - Macintosh OS X

Introduction to Mac Operating System: Snow Leopard

Xcode Application note

imac: Helpful Information

Check out our website!

Your First App Store Submission

Select the name of the application and click on Force Quit.

Introduction to OS X (10.4)

MAC SWITCH 101. Right-click my mouse to access commands or perform actions in a shortcut menu.

MY WORLD GIS. Installation Instructions

What's it Called on my Mac?

Dacorum U3A Apple Mac Users Group Agenda TUESDAY 7th July 2015 Time Machine Backups for your MAC & ipad?

Switch Basics Mac vs PC: On Windows, I used to...mac I can

TIPS FOR USING OS X 10.8 MOUNTAIN LION

MAC SWITCH 101. Elements of the Mac OS X desktop and Finder, and their Windows Explorer equivalents

MEAP Edition Manning Early Access Program Hello! ios Development version 14

DECS DER APPLE WIRELESS HELPER DOCUMENT

IT Quick Reference Guides Using Windows 7

Macintosh System OSX #1

The following was taken directly from the ARD (Apple Remote Desktop) operator s manual:

How To Understand How To Use A Computer On A Macintosh (Apple) Computer With A Mouse And Mouse (Apple Macintosh)

Introduction: The Xcode templates are not available in Cordova or above, so we'll use the previous version, for this recipe.

Internet Explorer 7. Getting Started The Internet Explorer Window. Tabs NEW! Working with the Tab Row. Microsoft QUICK Source

Send from your App Part 1

Avira Secure Backup INSTALLATION GUIDE. HowTo

How To Install A Cisco Vpn Client V4.9.9 On A Mac Or Ipad (For A University)

Personal Computing With Mac OSX

LYNC 2010 USER GUIDE

Book 1 Diving Into ios 7

GOOGLE DOCS APPLICATION WORK WITH GOOGLE DOCUMENTS

Managing Contacts in Outlook

Xcode Project Management Guide. (Legacy)

Akin Gump Strauss Hauer & Feld LLP Remote Access Resources (DUO)

Citrix Desktop for Home Computers Apple ios Instructions

VIVIDESK Desktops can be accessed with a Macintosh Computer by one of two methods:

Remote Desktop Services User's Guide

ios App for Mobile Website! Documentation!

Internet and Help. Table of Contents:

How To Use An Apple Macbook With A Dock On Itunes Macbook V.Xo (Mac) And The Powerbar On A Pc Or Macbook (Apple) With A Powerbar (Apple Mac) On A Macbook

Macintosh General Help

Digital Learner MacBook Air Quick Start Student User Guide

Windows XP Pro: Basics 1

Installation Instructions

Windows Basics. Developed by: D. Cook

Getting Started Guide. Chapter 14 Customizing LibreOffice

Sendspace Wizard Desktop Tool Step-By-Step Guide

Folder Management in Outlook for Macintosh

SIMIAN systems. Sitellite Desktop User Manual. Sitellite Professional Edition

Sophos Anti-Virus for Mac OS X Help

Word basics. Before you begin. What you'll learn. Requirements. Estimated time to complete:

Backup Buddy. Welcome to Backup Buddy! The simplest, friendliest backup application for the Mac.

Apple OS / ios Installation Guide Includes MAC OSx and ios based devices

ios App Development for Everyone

MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.

In list view, the Finder window displays folder or volume contents as a list, which can be sorted by name, date, kind, or other criteria.

Getting Started With Parallels Desktop 9

Introduction to SketchUp

File Management With Windows Explorer

Maximizing the Use of Slide Masters to Make Global Changes in PowerPoint

Mac OS X guide for Windows users

Most of your tasks in Windows XP will involve working with information

TakeMySelfie ios App Documentation

Akin Gump Strauss Hauer & Feld LLP Remote Access Resources

Customize tab; click the Accounts category; drag the satellite dish icon to your toolbar.

OS X LION SET UP THE SYSTEM

Creating an E-Commerce App in Sketch (Chapter Excerpt)

Remote Desktop Services

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

FileMaker. Installation and New Features Guide. for FileMaker Pro 15 and FileMaker Pro 15 Advanced

How to create and personalize a PDF portfolio

Technology Services Group Procedures. IH Anywhere guide. 0 P a g e

User Guide. v0.1 BETA. A-Lab Software Limited

Mac OS X (Leopard) The Basics

WORKBOOK. SpeechControl4Mac V2.8 Build 260 DICTATE 2.5

such as USB drives, connected servers, DVDs, CDs, configure file labels, and the information that appears in the Finder window sidebar.

OS X Yosemite - Features

IM, Presence, and Contacts

Communicating with Skype for Business

Contents. Getting Started...1. Managing Your Drives Backing Up & Restoring Folders Synchronizing Folders Managing Security...

Schools of Distance Education. Computer check-up for students using Mac OS X (Yosemite) devices

Introduction to Windows XP

Shortcut Keystrokes in OS X by Phil Russell

Hello. Quick Start Guide

Start Developing ios Apps Today

As you look at an imac you will notice that there are no buttons on the front of the machine as shown in figure 1.

Getting Started With Parallels Desktop 7

Managing documents, files and folders

Handout: Word 2010 Tips and Shortcuts

Getting Started With Parallels Desktop 8

Exploring the Apple OS X Environment

Shortcuts and Tips for Leopard/Windows XP on the Intel Mac

CheckBook Pro 2 Help

Hello. Quick Start Guide

Mac 101: Your input devices

Outlook . User Guide IS TRAINING CENTER. 833 Chestnut St, Suite 600. Philadelphia, PA

Getting Started Guide - Desktop

Lync 2013 User Instructions

The Dock The dock allow for well as removed from the. To remove an icon

HOW TO BURN A CD/DVD IN WINDOWS XP. Data Projects

Optional Lab: Data Backup and Recovery in Windows Vista

Transcription:

Advanced app development for ios Lab 1 Introduction to Mac OS X and ios app development Gdańsk 2015 Tomasz Idzi

Introduction This lab is designed to acquaint the student with the basic functionality of the Mac OS. Tasks to be performed is not subject to assessment, although it is recommended to perform with extreme care, since they are the basis for the next class. A student who will perform the following tasks should possess basic knowledge of navigating the Mac OS. Mac OS X - First look The desktop is the space where you see files, folders and application windows. Learn about your desktop and how to customize it. 1. Elements of the desktop

1. Apple menu (apple) - information about Mac, System Preferences, Sleep, Shut Down and more. 2. Application menu - contains menus for the application you re currently using. The name of the application appears in bold next to the Apple menu. 3. Menu bar - contains the Apple menu, active application menu, status menus, menu bar extras, Spotlight icon and Notifiaction Center icon. 4. Status menu - shows the date and time, status of your computer or gives you quick access to certain features - for example, you can quickly turn on Wi-Fi, turn off Bluetooth or mute your s computer s volume. 5. Spotlight icon - Click it to bring up the Spotlight search field, where you can search for anything on your Mac (in the newest Mac OS X - Yosemite to run Spotlight you have use keyboard shortcut + space). 6. Notification Center icon - Click it to view Notification Center, which consolidates your notifications from Messages, Calendar, Mail, Reminders, and third-party apps. 7. Desktop - This is where your applications' windows will appear. You can add more desktops using Mission Control. 8. The Dock - Quick access to your most frequently used applications, folders, and files. With a single click the application, folder, or file opens. Finder The Finder is the app that helps you navigate all of the files and folders on your Mac. The Finder lets you browse your apps, disks, files and folders in variety of ways. You can use the Finder to organize these items the way you want. You can also use the Finder to search for items, delete files you no longer want and more. 2. Finder icon To open a new Finder window, click the Finder icon in the Dock, than select File > New Window/ New Finder Window ( + N). The first window you may see in Finder is All My Files. This is a special window that shows all of the documents you have access to on your Mac.

3. Finder All My Files window. You can change how items are displayed in Finder windows by dragging them, arranging them or changing view. Use the View menu to change the view of the current Finder window. You can also click the corresponding View button in the Toolbar that appears at the top of Finder windows. Changing Views Icon View/List View/Column View/Cover Flow Arrangin items Arrange items in a folder from the View menu as well. Action button Include shortcuts to common actions in Finder 4. Finder baisic options. Using folders The Finder shows you the files contained on the disk and drives connected to your computer. You can organize these files into folders. You can store folders within other folders.

5. Creating folder in Finder. To create a new folder, use these steps: 1. Click where you want the folder to appear, such as on the desktop. 2. Choose File > New Folder. 3. Drag any of the files or other folders into this that you want field into the folder. You can also create a folder quickly by selecting multiple items. 1. Select the items you want to place in a folder. - click and drag your pointer across the items to create a selection box - or hold down the Command key on your keyboard and clidk each item you want to select - or select the first item you want in a list, then hold down the Shift key and select the last item 2. Choose File > New Folder with Selection After finishing these steps, the items are then placed in a folder. You can type a new name for the folder once it appears, like my files. To view the items stored within the folder, double-click the folder to see its contents. The name of the folder it shown at the top of the window to let you know which folder you are viewing.

Using folders When you no longer want an item, you can delete it. Select the item (or folder of items) in the Finder, then choose File > Move to Trash. The Finder then moves the item to a special folder called "Trash" so that you no longer see it. You can view items that are marked for deletion by clicking the Trash icon in the Dock. 6. Trash icon in the Dock. You can also removing a file by drag and drop on trash icon. To rename a file/folder in Mac OS X, you have to click on it and: - right-clicking, choose GetInfo and in Name & Extension section type new name - or press Enter button and type new name - or in finder open Action menu, choose GetInfo and in Name & Extension section type new name 7. Rename folder in Mac OS X

Compress an item Do any of the following: Select the items you want to compress and choose File > Compress. Control-click an item and choose Compress from the shortcut menu. In a Finder window, select one or more items and choose Compress from the Action menu. If you compress a single item, the compressed file has the name of the original item with the.zip extension. If you compress multiple items at once, the compressed file is called Archive.zip. Uncompress (expand an item) Double-click the.zip file. Keyboard shortcuts To use a keyboard shortcut, press a modifier key at the same time as a character key. For example, pressing the Command key (it has a symbol) and then the "c" key copies whatever is currently selected to the Clipboard. This is also known as the Command-C keyboard shortcut. You can see the keys that map to many shortcuts by looking in an app's menus. 8. App s menus with shortcuts.

fn Command key Control key Option key Shift Key Caps Lock Function Key 9. Keys represented by special symbols Cut, copy and paste Key combination Command-C Command-X What it does Copy the selected data to the Clipboard Remove the selected item and place a copy on the Clipboard Command-V 10. Shortcuts to cut, copy and paste. Place a copy of (paste) the Clipboard contents into the current document or app

Xcode Xcode is Apple s integrated development environment (IDE) that you use to build apps for Apple products such as the ipad, iphone, and Mac. Xcode provides tools to manage your entire development workflow from creating your app, to testing, optimizing, and submitting it to the App Store. 11. Xcode icon. 12. Workspace window.

Make the first ios app Xcode includes several built-in app templates for developing common types of ios apps, such as games, apps with tab-based navigation, and table-view-based apps. Most of these templates have preconfigured interface and source code files. This time, you ll start with the most basic template: Single View Application. 1. Find Xcode icon in Dock and run the application. 2. In the welcome window click Create a new Xcode project.

3. In the ios section at the left of the dialog, select Application. 4. In the main area of the dialog, click Single View Application and then click Next. 5. In the dialog that appears, name your app and choose additional options for your project. Use the following values: Product Name: MyFirstApp (it will be name of your project and app). Organization Name: The name of your organizatio or your own name. You can leave this blank. Organization Identifier: Your organization identifier, if you have one. If you don t, use com.example. Bundle Identifier: This value is automatically generated based on your product name and organization identifier. Language: Objective-C Devices: Universal (iphone and ipad) Use Core Data: Leave unselected 6. Click Next. 7. In the dialog that appears, choose a location to save your project and click Create. Xcode opens your new project in a window (workspace window):

Run ios Simulator Because you based your project on an Xcode template, the basic app environment is automatically set up for you. Even though you haven t written any code, you can build and run the Single View Application template without any additional configuration. To run your app in ios Simulator 1. Make sure iphone is selected in the Scheme pop-up menu in the Xcode toolbar. Scheme

Go ahead and look through the menu to see what other hardware options are avaliable in ios Simulator. 2. Click the Run button, located in the top-left corner of the Xcode toolbar. Run button Activity viewer 3. Watch Xcode toolbar as the build process completes. After Xcode finishes building your project, ios Simulator starts automatically. It may take a few moments to start up the first time.

Right now, the Single View Application template doesn t do much it just displays a white screen. Other templates have more complex behavior. It s important to understand a template s uses before you extend it to make your own app. Running your app in ios Simulator with no modifications is a good way to start developing that understanding. Create User Interface in Interface Builder The Interface Builder editor within Xcode makes it simple to design a full user interface without writing any code. Simply drag and drop windows, buttons, text fields, and other objects onto the design canvas to create a functioning Mac, iphone, or ipad user interface. To create UI in Interface Builder: 1. Select Main.storyboard file which you find in Navigator area on the left side of Xcode window. 2. Next in Utilities area on the right side of Xcode window find UIButton. Drag it from the list and drop on View Controller field. Do it three times. Double-click on the button to change title.

3. Now User Interface should looks like:

4. Select Show the Assistant editor button, which is on the right side of Toolbar. Than editor area will divide to two parts. In code section select ViewController.h file. 5. Than select UIButton in Interface Builder, press ctrl button on keyboard, drag and drop in ViewController.h code between @Interface and @end. Type name of property and press enter. Do it for every button.

6. Than add new action method changecolor in @interface section. #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property (weak, nonatomic) IBOutlet UIButton *redbutton; @property (weak, nonatomic) IBOutlet UIButton *greenbutton; @property (weak, nonatomic) IBOutlet UIButton *bluebutton; - (IBAction)changeColor:(UIButton*)sender; @end 6. Than select button in Interface Builder. In Utilities area on the right side of Xcode select Connection Inspector (the last icon). Than find Touch Up Inside in the list, press dot on the right side of the text and make connection with ViewController. Than select changecolor method from the list. Do it for every button.

7. Than go to ViewController.m file and implement changecolor method. 8. Run ios Simulator and press buttons. You should see how the color of backround is changed.