Artigo Acesso aberto Revisado por pares

Comparison of Objective-C and Swift on the example of a mobile game

2020; Lublin University of Technology; Volume: 16; Linguagem: Inglês

10.35784/jcsi.2058

ISSN

2544-0764

Autores

Karolina Banach, Maria Skublewska‐Paszkowska,

Tópico(s)

Mobile and Web Applications

Resumo

Mobile applications for the iOS platform can be developped using the Swift and Objective-C languages. The article presents a comparison between these languages based on a created mobile game. The structure and performance of these technologies were examined. Based on three devices, languages have been tested. Aspects such as RAM load, time between views, time to save data to the database and time to save data to file were tested as a part of the analysis. Two research hypotheses have been put forward: "Swift has a better performance than Objective-C" and "Swift has a simpler structure than Objective-C". The results obtained confirm that Swift is more efficient than Objective-C. Research into the structure of codes has proven that the newer language has a simpler structure than its predecessor.

Referência(s)