CSC 581: Mobile App Development Spring 2018

Similar documents
View Concepts. iphone Application Programming Lecture 4: User Interface Design. SDK provide many types of Views to show your content

CSC 581: Mobile App Development Spring 2019

Types of Views. View category Purpose Examples of views. Display a particular type of content, such as an image or text.

View Concepts. iphone Application Programming Lecture 4: User Interface Design. SDK provide many types of Views to show your content

A Mad Libs app that you will navigate through 3 UIViewControllers to add text that will be shown in a story on the fourth UIViewController.

ios Application Development Lecture 3: Unit 2

iphone Application Programming Lecture 5: View Programming

Structuring an App Copyright 2013 Apple Inc. All Rights Reserved.

ios DeCal : Lecture 2 Structure of ios Applications: MVC and Auto Layout

ITP 342 Mobile App Dev. Connections

User Experience: Windows & Views

TL;DR: Interface builder is the tool within Xcode for creating a User Interface via a GUI.

CSE 438: Mobile Application Development Lab 2: Virtual Pet App

Intro to Development for ios. Dave Koziol Arbormoon Software, Inc.

lecture 10 UI/UX and Programmatic Design cs : spring 2018

Building GUIs with UIKit. Kevin Cathey

Intro to Native ios Development. Dave Koziol Arbormoon Software, Inc.

Lesson 1: Hello ios! 1

Mobile Application Development

Implementing UI Designs in Interface Builder

1 Build Your First App. The way to get started is to quit talking and begin doing. Walt Disney

New UIKit Support for International User Interfaces

Widget Tour. iphone and ipod touch Development Fall 2009 Lecture 7

ios Development Lecture 3 Controllers of View Controllers Ing. Simone Cirani

In the first class, you'll learn how to create a simple single-view app, following a 3-step process:

OVERVIEW. Why learn ios programming? Share first-hand experience. Identify platform differences. Identify similarities with.net

Mobile Development - Lab 2

Working with Text, Keyboards, and Buttons

Learn to make desktop LE

ITP 342 Mobile App Dev. Collection View

Tip Calculator App Introducing Swift, Text Fields, Sliders, Outlets, Actions, View Controllers, Event Handling, NSDecimalNumber,

Objective-C Primer. iphone Programmer s Association. Lorenzo Swank September 10, 2008

App. Chapter 19 App. App (ViewController) App. Single View Application Single View Application View. (View Controller)

Modern Auto Layout. Building Adaptive Layouts For ios. Keith Harrison. Web: useyourloaf.com Version: 1.0 ( ) Copyright 2018 Keith Harrison

Chapter 2 Welcome App

My First iphone App (for Xcode version 6.4)

ios 9 SDK Development

Assignment III: Graphing Calculator

ios Certified Associate Developer (ICAD)

Social Pinboard: ios(swift) Application

iphone App Basics iphone and ipod touch Development Fall 2009 Lecture 5

S A M P L E C H A P T E R

ios Development - Xcode IDE

ADVANCED M A. Learn SiriKit, imessage apps, rich notifications, and more. with real-world projects HACKING WITH SWIFT COMPLETE TUTORIAL COURSE

Stanford CS193p. Developing Applications for ios. Fall Stanford CS193p. Fall 2011

ITP 342 Mobile App Dev. Connections

Building Mapping Apps for ios With Swift

Objectives. Submission. Register for an Apple account. Notes on Saving Projects. Xcode Shortcuts. CprE 388 Lab 1: Introduction to Xcode

ITP 342 Mobile App Dev. Interface Builder in Xcode

ios Application Development Hello World App Rubric

My First iphone App. 1. Tutorial Overview

COMPLETE TUTORIAL COURSE. Learn to make tvos LE. apps with real-worldam S F

A Vertical Slider for iphone

ITP 342 Mobile App Dev. Table Views

Document Version Date: 1st March, 2015

} override func didreceivememorywarning() { 26 super.didreceivememorywarning() 27 } 28 } Pause Stop

Mobile Application Programming. Messaging and Delegation

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

HACKING WITH SWIFT. Practical. ios 10 COMPLETE TUTORIAL COURSE. Learn to develop apps. for ios 10 by building MP. real-world projects E S

A Better MVC. 300 line view controllers or bust. Dave A guy who thinks too deeply about stuff

The MVC Design Pattern

HACKING WITH SWIFT. Practical. ios 11 COMPLETE TUTORIAL COURSE. Learn the powerful new. features in ios 11 by MP. building real-world Eapps

User Experience: Windows & Views

Using Advanced Interface Objects and Views

Assignment III: Graphing Calculator

Learn to make ios apps

Mastering UIKit on tvos

Adaptive Layout Hands-On Challenges

View Controller Lifecycle

Topics in Mobile Computing

Collection Views Hands-On Challenges

Introductory ios Development

Stanford CS193p. Developing Applications for ios. Winter CS193p! Winter 2015

Mobile Development Lab 3

Corrections and version notes

Stream iphone Sensor Data to Adafruit IO

Developing C# Apps for iphone and ipad Using MonoTouch

ITP 342 Mobile App Dev. Table Views

ios Core Data Example Application

What s New in tvos #WWDC16. App Frameworks. Session 206. Hans Kim tvos Engineer

Assignment III: Graphing Calculator

Collection Views. Dr. Sarah Abraham

2015 The MathWorks, Inc. 1

InterfaceBuilder and user interfaces

Assignment III: Graphing Calculator

Kendo UI. Builder by Progress : What's New

Duration 5 days (For basic crowd 5+3days needed)

Contents. iphone Training. Industry Trainers. Classroom Training Online Training ON-DEMAND Training. Read what you need

IAP Manager. Easy IAP Workflow. Copyright all rights reserved. Digicrafts 2018 Document version Support

Building Apps with Dynamic Type

CS193P: HelloPoly Walkthrough

Registering for the Apple Developer Program

Apple Watch Docs. Release 0.1. Michael Hahn

LEARNING ios APP DEVELOPMENT With Swift 3 & ios 10

Stanford CS193p. Developing Applications for ios. Fall CS193p. Fall

SAMPLE CHAPTER. Brendan G. Lim Martin Conte Mac Donell MANNING

Developing Applications for ios

Assignment IV: Smashtag Mentions

Index. btndrop function, 224, 226 btngetquote function, 246 btnpressed function, 28 btnquote method, 245. CallWeb method, 238, 240

3D Studio Max Lesson 1.1: A Basic Overview of 3DSMax's Main Tool Bar

Transcription:

CSC 581: Mobile App Development Spring 2018 Unit 2: Introduciton to the UIKit UIKit, UIViews UIControl subclasses 1 UIKit the UIKit is a code framework for building mobile apps the foundational class for all visual elements in the UIKit is the UIView (or just view) a view is a clear rectangular shape that is customized to display things on the screen : ü UILabel for displaying text ü UIImageView for displaying images ü UIScrollView for scrollable content most app screens consist of many views 2 1

ü UILabel for displaying text ü UIImageView for displaying images ü UITextView for entering and displaying multiline text ü UIScrollView for scrollable content 3 ü UITableView for displaying data in a scrollable column of rows and sections ü UIToolbar for displaying a toolbar of buttons usually at the bottom of the screen ü UINavigationBar for displaying main navigational controls usually at the top of the screen ü UITabBar for displaying options for actions 4 2

UIControl subclasses ü UIButton can be clicked ü UISegmentedControl can select from visible options ü UITextField can enter text ü UISlider can select from a range ü UISwitch can turn on or off ü UIDatePicker can select a date 5 UIViewController recall that when you create a Single View App Xcode automatically creates several files and folders Main.storyboard is the template for the screen, used by Interface Builder ViewController.swift is a class that is derived from UIViewController typically, each screen in an app will have a scene in the storyboard each scene in the storyboard will have its own ViewController when you add an element to the screen (e.g., a button), it becomes a child view of the main view as we saw in HW1, can connect UI elements to the ViewController code by control-dragging into the code (and specifying Outlet to create a field, Action to create a method) 6 3

in-class / HW 2a review the UI elements in Lesson 2.7 follow the tutorial in Lesson 2.8 create an app with ü a UILabel at the top with your name ü a UIImageView and UILabel for a photo and description ü a UISegmentedControl to select among 3 photos/descriptions your app should look reasonable on different sized devices don't worry about rotations you may need to review Lesson 2.9 7 App layout the Add New Alignment Constraints button in Interface Builder (IB) allows you to center an element in the screen the Add New Constraints button in IB allows you to set the size of an element allows you to position an element relative to edges or other elements if you set constraints and the layout in IB does not match click on the Resolve Auto Layout button in IB 8 4

Stack views a stack view manages a row or column of UI elements select the elements and click on the Embed in Stack button stack views can be edited as a whole in the Attribute Editor ü vertical vs. horizontal axis ü fill vs. leading vs. center vs. trailing alignment ü fill vs. fill equally vs. fill proportionally distribution ü spacing amount have constraints applied as a whole can be embedded in other stack views 9 in-class / HW 2b review the layout details in Lesson 2.10 follow the tutorial in the Calculator Lab use layout and stack views to build a calculator interface ü UILabel at the top right for the number ü UIButtons for each of the calculator buttons add the functionality to this interface (should behave the same as the calculator in the Apple Launchpad) the CalculatorModel class is provided to help elegance is not the priority here 10 5