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

Karolina Banach

karolina.banach@pollub.edu.pl
Lublin University of Technology (Poland)

Maria Skublewska-Paszkowska


(Poland)

Abstract

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.


Keywords:

Swift, Objective-C, performance, structure

The History of iOS, from Version 1.0 to 13.0, https://www.lifewire.com/ios-versions-4147730 [16.06.2020].
  Google Scholar

About Swift, https://swift.org/about [16.06.2020].
  Google Scholar

C. G. Garcia, J. P. Espada, B. C. Pelayo G-Bustelo, J. M. Cueva Lovelle, Swift vs. Objective-C: A New Programming Language,Regular Issue, https://www.researchgate.net/publication/277142254_Swift_vs_Objective-C_A_New_Programming_Language [30.06.2020].
  Google Scholar

K.E. Sienkiewicz, E. Łukasik, Porównanie aplikacji mobilnej w językach Swift i Objective-C, Journal of Computer Sciences Institutes, http://yadda.icm.edu.pl/yadda/element/bwmeta1.element.baztech-875445e3-044-6b5-b16d-880f12cc7ab3 [30.06.2020].
  Google Scholar

V. M. Santana, P. Centoze, Seciurity mechanisms and analysis for insecure data storage and unintended data leakage for mobile applications, International Journal of Computer and Technology https://www.researchgate.net/publication/324985466_SECURITY_MECHANSMS_AND_ANALYSIS_FOR_INSECURE_DATA_STORAGE_AND_UNINTENDED_DATA_LEAKAGE_FOR_MOBILE_APPLICATIONS [30.06.2020].
  Google Scholar

K. Gut, M. Skublewska-Paszkowska, E. Łukasik, J. Smołka, Comparison of programming languages on the iOS platform in terms of performance, IAPGOŚ http://yadda.icm.edu.pl/yadda/element/bwmeta1.element.baztech- 0bbfbb45-b7bf-4703-91aa-169a26d70236 [30.06.2020].
  Google Scholar

Xcode, https://developer.apple.com/xcode/ [16.06.2020].
  Google Scholar

SpriteKit, https://developer.apple.com/ documentation/spritekit/ [16.06.2020].
  Google Scholar

M. Lassoff, T. Stachowitz, Swift Fundamentals: The Language of iOS Development. 2014.
  Google Scholar

D. Chisnall, Objective-C Phrasebook, Second Edition. 2012.
  Google Scholar

Download


Published
2020-09-30

Cited by

Banach, K., & Skublewska-Paszkowska, M. (2020). Comparison of Objective-C and Swift on the example of a mobile game. Journal of Computer Sciences Institute, 16, 305–308. https://doi.org/10.35784/jcsi.2058

Authors

Karolina Banach 
karolina.banach@pollub.edu.pl
Lublin University of Technology Poland

Authors

Maria Skublewska-Paszkowska 

Poland

Statistics

Abstract views: 596
PDF downloads: 414