My first iPhone App – Part 2
Features and Bugs After showing the app around, I got a lot of input how to improve the concep
Features and Bugs After showing the app around, I got a lot of input how to improve the concep
Waveform of Audio File Installing I’ve tried a component FDWaveformView. It uses CocoaPods, a dependecy management tool like Python’s pip or Rust’s cargo. sudo gem install cocoapods
Toast Toasts are simple message dialogs val text = “Hello toast!” val duration = Toast.LENGTH_SHORT val toast = Toast.makeText(applicationContext, text, duration) toast.show() Toast.makeText(this@MainActivity, “Hello Toast!”, Toast.LENGTH_SHORT).show()
Resistors with 4 rings Color 1. Ring 2. Ring 3. Ring – Multiplier 4. Ring – Tolerance black 0 1 x 1 – brown 1 1 x 10 1 % red 2 2 x 100 2 % orange 3 3 x 1.000 – yellow 4 4 x 10.000 – green 5 5 x 100.000 0.5%…
In the last article we looked at functions in Kotlin. But there is more to functions: Multiple return values All you Pythonistas already know the concept of multiple return values. Kotlin as a strongly typed language uses the Pair class to enable functions to return two values or Triple to return three. fun nextTwo(num: Int)…