Flashcards
Mobile Multimedia
Cards in this deck (12)
- 14 steps to make XMLParsermake XML file
1. make XMLParser.swift
2. make init() in People.swift to call parsing()
3. call init() in viewDidLoad() of PeopleTableViewController.swift
4. Build & Run - 2Step 1 of making XML Parsera. prepare variables
b. parser delegate methods
c. parsing() method - 3Money converter class: 3 parts- variables
- init
-function - 4Money converter class: variablesrate
currencyA
currencyB
inverseRate (set & get) - 5Money converter class: initrate
currencyA
currencyB - 6Money Converter class: functionif dir > 0
amount * rate
else
amount * inverseRate - 7ViewController class: 5 elements-import UIKit
-4 outlets
-convert()
-clear = ..text = ""
-viewDidLoad
labelA.text = currencyConverter.currencyA - 8ViewController class: convertButton pseudocodelet euro = Double(textFieldA.text!)
let dollar = Double(textFieldB.text!)
if
fieldA is filled and is more than 0
String(convert())
else
same for other field
fill text field with default arguments - 9Make Core Data App: 5 steps1. new model file
2. add entity & items
3. add records with persistentContainer
4. context.save data
5. NSFetchRequest from [NSManagedObject] - 10Make Core Data App: 10 steps 1-51. create single view app
2. open core data, add entity
3. add attributes
4. make tableViewController
5. table & cell - 11Make Core Data App: 10 steps 6-106. TableViewController swift file
7. four variables
[ entity / context / peopleManagedObject / fetchedResultsController ]
8. makeRequest()
9. frc in viewDidLoad
10. set up table view data source - 12Step 10 of making core data: Set up table viewnumberOfSections: 1
numberOfRowsInSection = arc.sections![section].numberOfObjects
cellForRowAr
Information
- Description
- Flashcards on Mobile Multimedia, created by John Ratzinger on 24/04/2019.
- Created by
- John Ratzinger
- Views
- 2
- Rating