Tagged: #ProgrammingTutorial

Json (Swift)

Typically, if we work with the API Social. networks, the data comes to us in the .json format and we need to work with the data contained within this document. To work with this data is very simple, in most cases the data in the document are contained in the form of arrays or dictionaries. For example, we received data in this form: let json = “” “{// the first parenthesis opens the object “data”: [// square bracket denotes an array {// and this is again an object, that is, we get an array of...

Read & comments

Share the link (Swift)

Share the link! Do you know what this phrase means? Share a link or picture, if it’s simple, then it means sharing it with someone. In this case, share a link with your friends. For such purposes, you can use the UIActivityViewController. The UIActivity object has a set of parameters excludedActivityTypes (assignToContact, print, addToReadingList …) with which you can define an object for sharing. Standard sharing implies that the user can share the specified object in any application (of course, which has this feature), which is installed on the mobile device. Swift programming tutorial RabbiFox

Read & comments

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