Very often you should insert a pin-code in a UITextField that some service in order to verify your identity sends you via SMS (generally for a 2FA, two-factor authentication). Why do you need to write by yourself if you can read automatically and feel the UITextField directly? Starting from iOS 12 you can do this, […]
With the NetworkExtension framework, you can customize and extend the core networking features of iOS and macOS. Specifically, you can: Change the system’s Wi-Fi configuration Integrate your app with the hotspot network subsystem (Hotspot Helper) Create and manage VPN configurations, using the built-in VPN protocols (Personal VPN) or a custom VPN protocol Implement an on-device […]
Hi! with iOS 12, Apple released a new framework for language recognition and other interesting stuff. Is called NLLanguageRecognizer. Use the Natural Language framework to perform tasks like language and script identification, tokenization, lemmatization, parts-of-speech tagging, and named entity recognition. You can also use this framework with Create ML to train and deploy custom natural language models.
Classes, structures, and enumerations can define subscripts, which are shortcuts for accessing the member elements of a collection, list, or sequence. You use subscripts to set and retrieve values by index without needing separate methods for setting and retrieval. For example, you access elements in an Array instance as someArray[index]and elements in a Dictionary instance as someDictionary[key]. You can define multiple subscripts […]
Let’s make an example to understand better the scope of this tutorial. You want to: increment all numbers in array by 1 double all numbers in array check if the numbers in array are even or odd multiply all numbers in array more and more… How many functions should you create to do this?