Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Swift vs Objective - c in terms of Memory Management?

is Memory management in swift is best comparatively with Objective C ?

user-image
Question ajoutée par mohammed shafiullah
Date de publication: 2017/10/21
Sereena Aslam
par Sereena Aslam , Senior Project Manager , UST Global

Ofcourse. This is one of the main advantage of SWIFT over objective C. SWIFT supports ARC for all APIs where as in objective C,CoreGraphics APIs are not covered under ARC and so developer has to explicitly handle this.Objective C is an old code- more than 30 years ., where as SWIFT is new with better compilers. So go for it.

Abhishek Chatterjee
par Abhishek Chatterjee , Technical Specialist , Philips Innovation

In Objective-C, ARC is upheld inside the Cocoa APIs and object-oriented code; it isn't accessible, nonetheless, for procedural C code and APIs like Core Graphics. This implies it turns into the software engineer's obligation to deal with memory administration when working with the Core Graphics APIs and other low-level APIs accessible on iOS. The tremendous memory releases that a developer can have in Objective-C are unthinkable in Swift. 

ARC in Swift works crosswise over both procedural and object-oriented code, it requires not any more mental context switches for iOS application developers, even as they compose code that touches lower level APIs—an issue with the present version of Objective-C.

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?