IOS
Snippets

plausi.txt (UInt)
plausi.txt (Int)
plausi.txt (Double)

UITableView-Methoden
uiTableView Delegate-Funktionen
uiTableView Delegate-Funktionen_edit (Edit)
Klassen für TableView uiPickerViewer Delegate-Funktion
uiPickerViewer mit zwei Spalten

TextView Delegate

Basis.swift

function-Definition

Formatieren einer Zahl, Umwandlung in einem String
Setzen der Farbe eines Labels

Segue

Manuelle seque zum InputViewController

Klassen für TableView (Enums, City, CitiesDB)

Convert into the decimalsystem
Convert to a numbersystem from a decimalnumber
random


Transparente Bilder:

tabbar-bilder.zip
mycellsymbols.zip

PageBased-Wizzard

getHomeDir
getParentDir

Freischaltung Web für die App




Documentation

iOS-Swift-Shorttext.pdf
iOS-Swift.pdf (Stand 12.09.2021)
iOS-xcode.pdf (Stand 12.09.2021)
iOS-xcode-small.pdf




Scripte

Kapitel Script (Eine Folie pro Seite)
(Powerpoint)
Script (Zwei Folien pro Seite)
(Powerpoint)
Zusätzliche Dateien
Einleitung einleitung.pdf einleitung-2.pdf  
Sprache swift.pdf swift-2.pdf  
xcode xcode.pdf xcode-2.pdf  
Layout layout.pdf layout-2.pdf  



BackgroundImage

Name of the project Description Images, sourcecode, project
backgroundImage Project with Image as backgoud fpr a UIView Project: backgroundImage.zip

Tutorial:
Insert a UIImage into the UiViewController
Copy the images to the assets.xcassets
Insert Layout-Constraints
Set the transparency
- 1,0 no transparency
- 0,0 full transparency



Buttons with dices

Name of the project Description Images, sourcecode, project
ImageFilemanager Project with a tableview of directories and showing a list of images Project: button_with_dices.zip

Tutorial:
Copy the six images to the assets.xcassets
Copy a "blank-images" to the assets.xcassets
the "blank-images" must assign to each button
set the button with an image and no text
insert the button in an array
In the code set the button:
_if let image = UIImage(named: "W"+String(zahl)) {
___dicesl[i].setImage(image, for: .normal)
__}

The if-code a important!
if not then: Placeholder error



ImageFileMangeWithTableView

Name of the project Description Images, sourcecode, project
ImageFilemanager Project with a tableview of directories and showing a list of images Images:
ImageFileView_01.png
ImageFileView_02.png

tutorial for the project:
BeispieleTableViewImages.pdf
Sourcecode:
ViewController.swift (now with ".." Item instead of the button)
DirItem.swift
ShowPictures.swift
Project: iOSTableViewImageFileManager.zip



CoreData / Decode / Encode

Name of the project Description Images, sourcecode, project
Serialize eines Arrays Interne Klasse "Kunde"
Kunden werden gespeichert in einem Array
Speichern in eine Datei mittels encoder
Laden aus einer Datei mittels decoder
Image:
uiSaveLoadArray01.png

Sourcecode: uiSaveLoadArray.txt
Project: uiTabbedBased.zip



Beispiele Sensoren

Projektname Beschreibung Bilder, Quellcode, Projekt
Kamera
Camera
Aufnahme mit der internen Kamera
Anzeige mit einem uiImageView
Bilder:
iOSKamera01.png
iOSKamera02.png

Quellcode: iOSKamera.txt

Projekt: iOSKamera.zip
Mikrofon Aufnahme mit dem Mikrofon
Wiedergabe mittels Schalter
Bilder:
iOSMikrofon01.png
iOSMikrofon02.png
iOSMikrofon03.png
iOSMikrofon04.png
iOSMikrofon05.png
Quellcode: iOSMikrofon.txt

Projekt: iOSMikrofon.zip
Beschleunigungssensor
iOSAccelerometer
Abfrage des Beschleunigungssensor Bilder:
iOSAccelerometer1_01.png

Quellcode: iOSAccelerometer1.txt

Projekt: iOSAccelerometer1.zip
Beschleunigungssensor, Teil 2
iOSAccelerometer2
Abfrage des
Beschleunigungssensor
Neigungssensor
Anzeige mittels Viereck
Bilder:
iOSAccelerometer2_01.png

Quellcode: iOSAccelerometer2.txt

Projekt: iOSAccelerometer2.zip
GPS-Sensor Abfrage der GPS-Daten
·Man benötigt das Framework "CoreLocation"
·In pList muss eine User-Abfrage eingerichtet werden
Bilder:
iOSGPS01.png
iOSGPS02.png
iOSGPS03.png
iOSGPS04.png
iOSGPS05.png
iOSGPS06.png
iOSGPS07.png
iOSGPS08.png

Quellcode: iOSGPS.txt

Projekt: iOSGPS.zip



Problems and solutions in xcode

Keywords Description Beschreibung Solution
xcode copy ui-elements How can I copy ui-elements to another projekt? Wie kann ich die UI-Elemente in ein anderes Projektes kopieren? - Select the main-ui-element in the ui-tree
- menu edit, item "copy"
- change to the second project
- select the view-controller in the tree
- menu edit, item "paste"



Literatur

Swift 5
Michael Kofler
Rheinwerk
Rheinwerk Computing, ISBN 978-3-8362-6638-3

iOS 14 Programming Fundamentals with Swift
by Matt Neuburg
Released October 2020
Publisher(s): O'Reilly Media, Inc.
ISBN: 9781492092094




Plausibilität mit einem Wert (Int)