• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 13 páginas
Examen

Mobile App Development Quiz 1

Document preview thumbnail
Vista previa 2 fuera de 13 páginas

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 --

Vista previa del contenido

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

Información del documento

Subido en
1 de octubre de 2024
Número de páginas
13
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$11.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
TOPDOCTOR
5.0
(1)
Vendido
10
Seguidores
5
Artículos
3387
Última venta
1 año hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes