iOS Interview Questions and Answers (with Sample Code)
Top 10 astir asked question and reply questions for an iOS Developer role, successful a shape of a mock interview. The codification from the video: https://github.com/richardtop/ios_interview Follow Richard connected societal media: https://www.youtube.com/@richardtopchii https://github.com/richardtop/ https://x.com/richardtop_ios Follow Daniel connected societal media: https://x.com/iDanb0 https://github.com/idanbo ⭐️ Links from the video ⭐️ View Controller Life Cycle https://developer.apple.com/documentation/uikit/uiviewcontroller What’s the quality betwixt a struct and a class https://docs.swift.org/swift-book/LanguageGuide/ClassesAndStructures.html https://github.com/apple/swift/blob/main/stdlib/public/core/Array.swift#L303 https://developer.apple.com/swift/blog/?id=10 What’s the quality betwixt .frame and .bounds spot of a UIView https://developer.apple.com/documentation/uikit/uiview/1622621-frame What is simply a Protocol Oriented Programming https://developer.apple.com/videos/play/wwdc2015/408/ "defer" connection coding question https://docs.swift.org/swift-book/ReferenceManual/Statements.html MVC architecture (Model, View, Controller) https://developer.apple.com/library/archive/documentation/General/Conceptual/DevPedia-CocoaCore/MVC.html https://developer.apple.com/library/archive/documentation/General/Conceptual/CocoaEncyclopedia/Model-View-Controller/Model- View-Controller.html#//apple_ref/doc/uid/TP40010810-CH14 https://developer.apple.com/library/archive/featuredarticles/ViewControllerPGforiPhoneOS/ImplementingaContainerViewController.html "weak" and "unowned" keywords https://kelvas09.github.io/blog/posts/ios_weak_unowned/ https://developer.apple.com/documentation/foundation/urlsession "lazy" keyword https://stackoverflow.com/questions/38141298/lazy-initialisation-and-retain-cycle "@escaping" closure attribue and non-escaping closures https://kelvas09.github.io/blog/posts/ios-escaping/ ❤️ Support for this transmission comes from our friends astatine Scrimba – the coding level that's reinvented interactive learning: https://scrimba.com/freecodecamp ⭐️ Contents ⭐️ ⌨️ (0:00:00) Overview ⌨️ (0:00:34) Daniel, the interviewer ⌨️ (0:02:03) Why these questions? ⌨️ (0:02:43) View Controller Life Cycle ⌨️ (0:12:08) What’s the quality betwixt a struct and a class ⌨️ (0:18:33) What’s the quality betwixt .frame and .bounds spot of a UIView ⌨️ (0:25:58) What is simply a Protocol Oriented Programming ⌨️ (0:32:16) "defer" connection coding question ⌨️ (0:37:13) GCD / DispatchQueue coding question ⌨️ (0:46:49) MVC architecture (Model, View, Controller) ⌨️ (0:52:32) "weak" and "unowned" keywords ⌨️ (0:57:07) "lazy" keyword ⌨️ (1:02:05) "@escaping" closure attribue and non-escaping closures ⌨️ (1:05:16) Summary and feedback Corrections: 52:19 The video states that unowned references cannot beryllium optional. However, successful practice, unowned references whitethorn beryllium either optional aliases non-optional. For charismatic archiving connected this topic, mention to: https://docs.swift.org/swift-book/documentation/the-swift-programming-language/automaticreferencecounting/#Unowned-Optional-References 1:01:52 The mentation successful the video whitethorn lead viewers to incorrectly infer that non-escaping behaviour became the default for closures starting pinch Swift 5.0. The building "as of Swift 5.0, the non-escaping behaviour is the default" was utilized solely to explain the behaviour astatine the clip of the question and reply recording, alternatively than to specify the nonstop constituent astatine which this alteration was introduced. The video emphasizes the expertise to shop a closure successful a adaptable arsenic the defining characteristic of an escaping closure. However, the much precise and charismatic meaning is: "A closure is said to flight a usability erstwhile the closure is passed arsenic an statement to the usability but is called aft the usability returns." This meaning correctly highlights the API behaviour alternatively than the implementation details. For further reference, see: https://docs.swift.org/swift-book/documentation/the-swift-programming-language/closures/
English (US) ·
Indonesian (ID) ·