Apple Xcode with Swift Demo

Slides:



Advertisements
Similar presentations
View-Based Application Development Lecture 1 1. Flows of Lecture 1 Before Lab Introduction to the Game to be developed in this workshop Comparison between.
Advertisements

BTEC 149. Windows Desktop Click on the Start Button.
In the top left corner of the page, click on Pages & Files. Click on the If Then Statements folder to select it. Click New – Create a Page. You can also.
Microsoft PowerPoint Third- Fifth Grade Katie Claxton Chandler Elementary Library Media Specialist.
Friday, August 29, 2014 CSCI 351 – Mobile Applications Development.
Downloading eBooks to your iPhone, iPad, and iPod Touch from Overdrive.
Google Earth How to create a Google Earth Tour and place it in your Wiki.
Create Your Own Personalized Augmented Reality Content: It's Easier than You Think! By Courtney Pepe.
Getting Started Make sure you have completed the measurements required before adjusting the simulator to use the sensor array.
Go to our website, and click on the eMedia Catalog link To find books, either click on the advanced search (which I will.
Highly Confidential – for UCRE Affiliate Use Only 2015 Regional Training Class Embedding maps on the listing page of your United Country office website.
Download Dropbox Download should start immediately Save download file:
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
Placing a HOLD on a the Kitty Hawk Library!
Introduction to Windows7
 Enter username and password into Novell screen.  Click “ok” and wait for desktop to load.  When desktop loads, open Microsoft Word using the icon.
Computer Organization  Today we will:  Enroll in NetSchool  Set the following as “Favorites”: NetSchool home course page eGrades  Optional: Set.
Tabbed Views UITabBarController. Controller Architecture UITabBarController Controls the first view that the user sees The view controller class (and.
IOS with Swift Hello world app.
Microsoft PowerPoint Research: Third- Fifth Grade
CamScanner Free for iPhone, Android, Windows Phone.
Creating a navigation bar in Fireworks. Setting up the canvas Open Fireworks and choose a canvas size big enough to fit the buttons on you are going to.
Epson Interactive Projector Part 2 Whiteboard mode With whiteboard.
Using skype for business to share desktops
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Folio3 IPhone Training Session 2 Testing App on device Presenter: Imam Raza.
It is a digital recording of your computer screen. Screencasts are important in online teaching because it is a way of replacing traditional classroom.
If you don’t have Google Earth downloaded already, you can go to to get it.
 You can fix any verbal/visual errors  To make it more interesting by adding transitions and music  To be able to add it to your My Big Campus online.
Opening a File 1.Open Word 2.Click the Microsoft Office button(Very top left hand corner). A menu appears 3.Click Open. The Open dialog box appears 4.Use.
WebViews UIWebView. Controller Architecture UITabBarController Controls the first view that the user sees The view controller class (and xib) that manages.
Transfer Contacts from iPhone to Android From:
5/14/2003Sprint TekNet IP Train the Trainer1 Open TekNet Software If working at a client station, enter the IP address of the server and mark page as a.
Google Maps A tutorial on how to use Google Maps.
1.5 File Management.
Using Google SketchUp for Solar Blueprints
Add Video Library in Company
Add Media in Company After Login Below screen will display
Introduction to iOS App Development Environment
App2Talk Tutorial App2Talk Tutorial.
How to Submit a External Tool Assignment
The Smarter Balanced Assessment Consortium
The EBSCOhost iPhone Application
Display Trouble Shooting
Using a set-up file to read ASCII data into SPSS
 Firstly you need to press the “Windows” key, and then simply enter “Google Chrome” that will bring up the search option. Here you need to right-click.
Shotcut video editor.
CSCI 351 – Mobile Applications Development
The Smarter Balanced Assessment Consortium
Programming In Any Language With “Hello, World!” Examples
Adults Services Librarian
The Smarter Balanced Assessment Consortium
The Smarter Balanced Assessment Consortium
Library Catalog System
1. Open Visual Studio 2008.
A few tricks to take you beyond the basics of Microsoft Office
Making Pictures Come to Life...
How to PostPower Point Presentations
Ways to make a nice looking PowerPoint!
iMovie basics What is the purpose of iMovie?
Dell Latitude Laptop Student setup.
Clemson For iOS Devices and Wi-Fi Setup
Professor Susan Rodger
How to Open PowerPoint Maryam Fatima.
The Smarter Balanced Assessment Consortium
Professor Susan Rodger
Creating and Sending Saved Messages
CSC 581: Mobile App Development
The Smarter Balanced Assessment Consortium
Presentation transcript:

Apple Xcode with Swift Demo Week 04 Apple Xcode with Swift Demo

iOS app to display an image Click Launchpad from Mac to launch Apple Xcode. Click Xcode version 8.1 (for iOS 11.x) Click “Create a new Xcode project”. Choose: iOS – Application – Single View Application; then click “Next” button. Enter the following information: Product Name: ShowImage Organization Identifier: com.yourname Bundle Identifier: com.yourname.ShowImage Language: Swift Devices: iPhone Click “Next” Save project to “Desktop” – Click “Create”.

iOS app to display an image Left upper corner should show the project name “ShowImage”. We only care about two modules: ViewController.swift and Main.Storyboard. Click “Main.Storyboard” from the left hand side; Click “View Controller” in the middle screen to see the design screen. On the top right hand side, click the “Show the Assistant editor” to put the design screen and the program screen side by side. (Adjust the screens if possible). Control Key + Click the “ShowImage” project icon on the upper left hand side, then click the “Add Files to ShowImage”. Click “all my files” to see all my image files. Select “swift.png” file; click “option”; check “copy if needed”; then click “Add”. Make sure swift.png file copy inside the project.

iOS app to display an image Click “Main.Storyboard”, click “view” to adjust the design screen. On bottom right hand corner, click “show the media library” (icon likes a film). Drag and drop swift.png to design screen. Adjust size if possible. Highlighted the swift.png in the design screen, check the “Hidden” button from “Drawing” property on the right hand screen. Next to the “media library”, click the “show the object library” (icon likes an eye). Search for button object, drag and drop button object to design screen. Adjust it if possible. Highlighted the button, enter “Display Image” into Title property on the right hand screen.

Start codeing Control key + Click the swift.png, click the “New Referencing Output”, drag and drop to ViewController.swift which is next to the design screen on the right. This object should put it after the “Class” and before the “Override Func”. Name: swiftImage Click “Connect” to complete. Control key + Click the “Display Image” button, click and drop the “New Referencing Output” to ViewController.swift after the above object. Name: displayButton

Start coding Continue from the above step, from “Sent Event”, Click + drop the event “Touch up Inside” to “ViewController.swift” after the above objects. Name: actionDisplayImage Click “Connect” to complete Inside the “actionDisplayImage function” in the “ViewController.swift”, add the following single statement: swiftImage.isHidden = false;

Testing and Debugging Click “Play” to build and test the program. Click the simulator to see the output, click the “Display Image” button to see the swift image. Click the “stop” simulator button. Quit Simulator Quit Xcode Note: next time, click the “ShowImage” icon, click “ShowImage.Xcodeproj” to open the Xcode again.