• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 13 pages
Exam (elaborations)

Mobile App Development Quiz 1

Document preview thumbnail
Preview 2 out of 13 pages

Consideration when developing mobile apps - answer---limited screen size --each app has one window --limited resources: app needs to star and quit quickly --might not always have internet access --could be interrupted --no physical keyboard and mouse for interaction SDK Components - answer---Xcode --Frameworks --Simulator --Instruments Xcode - answer---Integrated Development Environment (IDE) to create and manage development projects --Interface Builder: tool to build your application user interfaces Frameworks - answer-Software libraries that provide specific functionality Simulator - answer---Simulates running your apps on you Mac --Enables yo to run, test, and debug iPhone and iPad apps on your Mac --recreates most of the physical behavior of an actual device --Except: no phone, camera, GPS, Accelerometer, iPod, bluetooth --Doesn't emulate memory usage Instruments - answer-Gather and analyze data on your apps behavior Toolbar - answer---Lets you preform tasks to build and run your projects --Left drop down lets you choose how yo want build and run your project --In the middle is the activity view which shows what's going on at any given time Hierarchy View - answer-Shows the content of the story board, split up into scene and content Utility View - answer---Information for the currently selected object. This is where you set various properties --File Inspector --Quick Help --Identity inspector --Attributes inspector --Size inspector --Connections inspector Library - answer---File templates --Code Snippets --Objects (square in circle): Contains all the UI objects you can use in your user interface by simply dragging and dropping onto your view --Media library --Search field at the bottom of the library code: import UIKit - answer-imports the UIKi framework which is the foundation of all IOS UI code: class viewController: UIViewController - answer--defines our class View Controller -UIViewController is a superclass (which is in UIKit which is why we imported that) -all code for this class will be in the curly braces Make a button - answer---click and drag UI element to code --Connection: Action --Name: buttonPressed --Type: UIButton --Event: Touch up Inside is the standard event to use for buttons --Arguments: Sender code: @IBAction func buttonPressed(_ sender: IUButton) {} - answer-method that calls buttonPressed --called a method header Connect button to outlet - answer---click and drag to label --Connection: Outlet --Name: messageText --Type: UILabel --leave storage as weak --Connect code: @IBOutlet weak var messageText: UILabel! - answer-makes an outlet Object-Oriented Programming - answer---OOP models the natural way humans think about thing in terms of attributes and behaviors --OOP makes building complex, modular and reusable apps much easier --OOP comes data and operations on the data (behavior) into one unit, a class --Swift and Java are both object oriented languages. Class - answer---Models a concept or thing in the real world --Provides a template, or blueprint for it's objects --Defines the characteristics (data properties) and behavior (methods) of its objects --The data properties provide the class attributes, or characteristics --Similar to function, methods are the actions or behaviors of the class. --Defines which parts can be seen outside the class therefore hiding private information Objects - answer---Something that can be acted on --An instance, or occurrence, of a given class -An object of a given class has the structure and behavior defined by the class --Many different objects can be defined for a given class. --All objects of the same class of the same structure --Contains Properties and Methods Objects: Properties - answer-store data/information Objects: Methods - answer-Methods are actions the object can preform --A method should focus on on specific task --Jus like functions but part of a class --often change Initialization - answer---the process of preparing an object of a class for use --Initializers/Constructors are special methods that instantiate a new object of a class. Modular Encapsulation - answer-data properties and behavior are packaged into a single well-defined programming unit Information Hiding - answer-Methods provide the public interface to objects of a class Implementation is kept private Inheritance - answer---enables classes to form a hierarchy like a family tree --allows subclasses to share the structure and behavior of its superclass --A super class should be generalized and its subclasses become more a more specialized definition --Inheritance allows you to easily reuse code Inheritance: superclasses and subclasses - answer---Superclass is the parent class --A subclass extends a class --inherits from the superclass --Can add properties and methods --Can override a method with a new one Why use OOP? - answer---IOS and Android are based on a OOP architecture --Encapsulation: data and methods in a cohesive unit --Defines a public interface through the methods while the methods while the rest of the information is private within the object --eliminates redundancy because code is reusable --easier to maintain --easier to debug Model-View-Controller (MVC) - answer---the MVC architecture is a common design pattern and is used in both iOS and Android Model: hold the data and classes --should be UI independent View: all items for the user interface (objects in IB) Controller: links the model and the view together. The backbone or brain of the app --usually subclasses from the UI frameworks that allow the view and the model to interact --Controllers are usually paired with a single view, that where ViewController comes from The goal of MVC is to have any object be in only one of these categories --these categories should never overlap --you should be able to change the model and not have to change the UI, and vice versa Ensures reusability Da Vinci: image Tags - answer-In attribute inspector under View make each image of a Tag = 1 2 or 3 --this are considered properties Da Vinci: View in Mode - answer-Always chose aspect fit Outlets - answer---special properties that point to an object in the Interface Builder file --IBOutlet is a keyword that tells IB that this instance variable is an outlet that will connect to an object in a storyboard --IB will let you make connections only to IBOutlet instance variables Actions - answer---method in your controller class --IBAction is a keyword that tell IB that this method is an action that can be triggered by a control --IB will let you make connections only to IBAction methods ( _ sender: UIButton) - answer-sender is the same of the integral parameter for this method type UIButton if ==1 {artI=UIImage(named: "MonaLisa")} - answer---(named: String)--initializes the method --initializes a new UIImage object Adaptive Layout: goal is for UI to adapt to users environment in - answer---orientation --Device size and setting --Locale Device Rotation Code - answer-supportedInterfaceOrientations() Auto Layout - answer---enables you to create a user interface that responds to different screen sizes, orientations and localization --helps with internalization as it can resize your labels based on the content In the attributes inspector you can change stack view attributes - answer---axis--vertical or horizontal --Alignment --Distribution--defines the layout of the views along the axis --Spacing--defines the space between adjacent views Contraints - answer---Constraints express rules for the relationship between UI elements in your interface --These rules are used to automatically create your interface when your apps runs For each element there must be enough constraints to determine its placement --horizontal position --vertical position --size: height, width Creating Constraints --Auto resizing --IB can add suggested or missing constraints based on your interface layout --Create and modify your own constraints Auto Resizing - answer---In the size inspector tab you can set auto resizing masks for simple layouts --These mask are translated into constraints at run time --If you se auto resizing on a view then you can't manually create constraints --Once you create constraints manually, they override the auto resizing mask on that view' --You can mix and match on different views, but only use on type per view Manually create constraints - answer-Constraints properties ' --Attributes: leading and trailing are the default --Values: size or offset of constraint in points --

Content preview

Mobile App Development Quiz 1
Consideration when developing mobile apps - answer---limited screen size
--each app has one window
--limited resources: app needs to star and quit quickly
--might not always have internet access
--could be interrupted
--no physical keyboard and mouse for interaction

SDK Components - answer---Xcode
--Frameworks
--Simulator
--Instruments

Xcode - answer---Integrated Development Environment (IDE) to create and manage development
projects
--Interface Builder: tool to build your application user interfaces

Frameworks - answer-Software libraries that provide specific functionality

Simulator - answer---Simulates running your apps on you Mac
--Enables yo to run, test, and debug iPhone and iPad apps on your Mac
--recreates most of the physical behavior of an actual device
--Except: no phone, camera, GPS, Accelerometer, iPod, bluetooth
--Doesn't emulate memory usage

Instruments - answer-Gather and analyze data on your apps behavior

Toolbar - answer---Lets you preform tasks to build and run your projects
--Left drop down lets you choose how yo want build and run your project
--In the middle is the activity view which shows what's going on at any given time

Hierarchy View - answer-Shows the content of the story board, split up into scene and content

Utility View - answer---Information for the currently selected object. This is where you set various
properties
--File Inspector
--Quick Help
--Identity inspector
--Attributes inspector
--Size inspector
--Connections inspector

Library - answer---File templates
--Code Snippets
--Objects (square in circle): Contains all the UI objects you can use in your user interface by simply
dragging and dropping onto your view
--Media library

, --Search field at the bottom of the library

code: import UIKit - answer-imports the UIKi framework which is the foundation of all IOS UI

code: class viewController: UIViewController - answer--defines our class View Controller
-UIViewController is a superclass (which is in UIKit which is why we imported that)
-all code for this class will be in the curly braces

Make a button - answer---click and drag UI element to code
--Connection: Action
--Name: buttonPressed
--Type: UIButton
--Event: Touch up Inside is the standard event to use for buttons
--Arguments: Sender

code: @IBAction func buttonPressed(_ sender: IUButton) {} - answer-method that calls buttonPressed
--called a method header

Connect button to outlet - answer---click and drag to label
--Connection: Outlet
--Name: messageText
--Type: UILabel
--leave storage as weak
--Connect

code: @IBOutlet weak var messageText: UILabel! - answer-makes an outlet

Object-Oriented Programming - answer---OOP models the natural way humans think about thing in
terms of attributes and behaviors
--OOP makes building complex, modular and reusable apps much easier
--OOP comes data and operations on the data (behavior) into one unit, a class
--Swift and Java are both object oriented languages.

Class - answer---Models a concept or thing in the real world
--Provides a template, or blueprint for it's objects
--Defines the characteristics (data properties) and behavior (methods) of its objects
--The data properties provide the class attributes, or characteristics
--Similar to function, methods are the actions or behaviors of the class.
--Defines which parts can be seen outside the class therefore hiding private information

Objects - answer---Something that can be acted on
--An instance, or occurrence, of a given class
-An object of a given class has the structure and behavior defined by the class
--Many different objects can be defined for a given class.
--All objects of the same class of the same structure
--Contains Properties and Methods

Objects: Properties - answer-store data/information

Document information

Uploaded on
October 1, 2024
Number of pages
13
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$11.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TOPDOCTOR
5.0
(1)
Sold
10
Followers
5
Items
3387
Last sold
1 year ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions