iOS – Data Leakage: App background cache

Today I want to share a simple way to retrieve user data from a native iOS cache image, automatically generated when your app goes in background.

You can retrieve this kind of informations if your phone was lost or Jailbreaked or connecting it to your pc and open an old backup. You can use tools like iBackup Viewer and more…

Let’s see how it works!

Continue reading “iOS – Data Leakage: App background cache”

CoreML – Twitter sentiment analysis

Today a post about the new Apple framework – CoreML – a machine learning framework to use your trained data-model inside iOS apps.

https://developer.apple.com/machine-learning/core-ml/

Documentation: https://developer.apple.com/documentation/coreml


The example of today is about machine learning to identify the mood of a collection of tweets (#apple, @apple, #covid-19, #love, etc…).

Continue reading “CoreML – Twitter sentiment analysis”

Swift – Access list items from Struct, Class and Enum using Subscript

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 for a single type, and the appropriate subscript overload to use is selected based on the type of index value you pass to the subscript. Subscripts are not limited to a single dimension, and you can define subscripts with multiple input parameters to suit your custom type’s needs.

Continue reading “Swift – Access list items from Struct, Class and Enum using Subscript”