RabbiFox Development Apps

Style Code (Swift)

Do you know about such a concept as “beautiful” code? Undoubtedly, each programming language has its own style of writing, and Swift is no exception. For example, there is such a small rule: to write classes, structures and enumerations only with a capital letter and each new word to begin with a capital (class MyClass), and properties with a small (let myConstant). It is also recommended to use internal and external names, for example, for function parameters in an external name, you can write about what this function does, and internal one with a single...

Read & comments

Update Xcode to version 9

Update Xcode to version 9.0.1. In the new version of the program: • The iPhone X simulator has been improved; • Fixed a problem with the synchronization of Test Navigator; • Additional fixes and stability improvements. Also in Xcode 9 there are many improvements: wireless installation and debugging for iOS and tvOS applications on devices over the network, the simulator can simulate several devices simultaneously, the project navigator automatically saves files and groups in sync with the Finder, Xcode server no longer requires a MacOS server and can be configured in Xcode, latest SDKs include...

Read & comments

Core Data framework (Swift)

Core Data is a framework that every developer should know. It is intended for storage and management of an object graph of a data model. Core Core Components: – managed object model (a model that contains the essence and connections); – managed object contexts (for managing collections of model objects); – persistent store coordinator (responsible for data storage and caching). To start using these frameworks when creating a project, you need to check Use Core Data. When this check box is selected, an empty data model and code for working with Core Data are added...

Read & comments

Multithreading – Queues (Swift)

One of the important tools that every developer under IOS should know is multithreading. In some situations, you need to split your code execution into different threads, for example, if you want to load an image and at the same time figure something out, it’s better to use multithreading to perform two tasks simultaneously without overloading the process. Multithreading for another can be explained by queues, as in real life people line up in the queue in stores, and in programming some of the code can be lined up. Queues are serial and concurrent, and...

Read & comments

Properties: get & set (Swift)

var test: Int {
get {
return x
}
set (newVal){
x = newVal
}
}
test = 200

Do you know anything about calculated properties? Get and Set do not store the values, they are needed to store the state of the object, stored inside variables and are recalculated every time it is accessed. Get – calculates and returns a value. Set – sets the value. Swift tutorial programming Tutorial language Swift  

Read & comments