Don’t underestimate the enumerations in Swift. If you come from C or objective C there is a nice surprise for you. Enumeration are not based on integers, can have methods, initialisers, computed properties and conform to protocols. Additionally, we are going to learn about associated values as well, a powerful feature that is engaged in
Author: angelos
Structures 101 in swift
Structures is not another type in swift. If you have background in C or objective C you will be impressed with the functionality of structs in swift. Structures have initialisers, methods, comfort to protocols have extensions…convinced? Well, if start thinking that are like classes you are right but…only similar. Major difference is that structures are
Iterating through Collection Types in Swift
Collection types in swift are the arrays, the dictionaries and the sets. Iterating through them is really easy using the for-in loop. The purpose of this article is to gather all the related information in one point, neat? Lets start with the arrays. We have an array of Strings and we want to print the
Continue reading Iterating through Collection Types in Swift
Closures 101 in swift
Closures, what a great tool! Once you get it, you love it. Closures are the famous blocks in Objective-C. Maybe were a bit difficult to understand at first sight. I’ve written three parts in this blog to explain them. However now everything is easier. Closures are vital part in Swift and we will experiment with
Functions 101 in swift
Functions are the building blocks of any application. Let’s start with some obvious characteristics about them. The functions declared using the keyword func. Then follows the function name and the parenthesis containing the parameters, after that there is an arrow “->” and the return type is defined. So, it looks like: Inside the function, we
Declaration of variables in different locations in Objective-C
Having worked with Objective-C you will have noticed that there are many different locations to declare instance variables and local variables. In this article, we are going to explore the different possibilities and the meaning of each case. Lets start with the header file of the class. This file looks like this: In the first
Continue reading Declaration of variables in different locations in Objective-C
Check if a UITextField is empty
One of the most common tasks is to check whether a UITextField is empty in order to proceed with a save action. The way to manage the Return Key in the keyboard is very easy. In the Attributes Inspector of the UITextField object you just have to enable the “Auto-enable Return Key” option. On the
Radiation mapping application (Functionality)
The radiation mapping application has been developed using the directions of the experienced Interface Analysis Centre (IAC) researchers. It is a very specific application and in order to be useful and a real tool in the hands of the user, it has to be specifically defined and designed according to their needs. The configuration screen
Continue reading Radiation mapping application (Functionality)
Radiation mapping application (Implementation)
The radiation mapping application was developed based on the iPhone 5 screen dimensions. Consequently, the layout and the size of the elements are adapted to this device. The minimum supported iOS version is the 7th. The implemented application consists of three UIViewControllers embedded in navigation controllers (fig.1). The main data structure that holds the mapping
Continue reading Radiation mapping application (Implementation)
Radiation mapping application (Concept)
This mobile application constitutes an important part of this project since it is directly related to the radiation mapping visualisation. Up until now the radiation mapping is a procedure which is conducted offline. To illustrate, the operator could carry a hand held measurement device that stores the data in a SD memory card. Upon the