top of page

Day 2 iOS Technical Questions (Updated for 2025)



1. Swift (iOS 18 Update):Q: What’s new in Swift 5.11 and how does it affect your development?A: Swift 5.11 brings better compile-time performance, enhanced ownership model, and early support for Apple’s AI APIs (@Model annotations). You can write cleaner code with better memory efficiency and prepare for AI SDK integration in iOS 18.

2. SwiftUI (iOS 18):Q: What’s new in SwiftUI 6 (iOS 18)?A: SwiftUI 6 introduces:

  • Built-in AI-assisted modifiers

  • Enhanced live previews

  • New layout APIs (GridStack, FlowLayout)

  • Native support for Material 4 design principles

  • Real-time design collaboration with Xcode 16 beta

3. UIKit:Q: How do you manage state restoration in UIKit apps?A: Implement application(_:shouldSaveApplicationState:) and application(_:shouldRestoreApplicationState:) in AppDelegate, and override encodeRestorableState(with:)and decodeRestorableState(with:) in view controllers to save and restore UI state.

4. Core Data:Q: What is the difference between NSPersistentContainer and NSManagedObjectContext?A: NSPersistentContainer sets up the Core Data stack and manages the context. NSManagedObjectContext is used for performing fetches, inserts, updates, and deletes. Use .viewContext for main-thread UI operations and newBackgroundContext() for background tasks.

5. NFC:Q: How can iOS apps using NFC be secured against unauthorized reads/writes?A: Use tag-specific security (e.g., password-protected MIFARE tags), validate tag identity with UID or cryptographic methods, and apply app-level logic to prevent unauthorized access. iOS also requires user interaction to start a session.

6. Data Structures:Q: How do you implement a Least Recently Used (LRU) cache in Swift?A: Use a combination of Dictionary for O(1) access and Doubly Linked List for O(1) updates/removals. This data structure is often used in image caching and memory management.

7. In-App Purchases:Q: What’s new in StoreKit 3 and how does it help developers?A: StoreKit 3 (2025) includes:

  • Simplified APIs

  • Better support for server notifications

  • Improved receipt validation

  • Native subscription offers and churn prediction

8. Notifications:Q: How do you implement notification actions (custom buttons in notifications)?A: Define UNNotificationAction, group them into a UNNotificationCategory, and register it with UNUserNotificationCenter. Then assign the category ID to the notification content.

9. Firebase / Firestore:Q: How do Firestore security rules work with subcollections?A: Firestore rules don’t automatically apply to subcollections. You must explicitly define rules for each path or use wildcards like match /users/{userId}/posts/{postId} to secure nested structures.

10. Storyboard:Q: What’s the best way to manage complex storyboard-based projects?A: Use multiple storyboards (modular structure), reference via Storyboard References, assign unique Storyboard IDs, and load via instantiateViewController(withIdentifier:).

📡 Apple & iOS News — June 2025

  • iOS 18 Beta: Focus on AI integration, context-aware Siri, and system-wide smart actions

  • Xcode 16 Beta: Collaborative live previews, new debug timeline for performance tracing

  • SwiftUI 6: Support for reusable layout definitions and AI-based design assistant

  • Apple Developer Program now allows limited test deployments via “Private Share Links”

💼 HR Questions

Q: How do you handle feedback you disagree with?A: I listen first, ask clarifying questions, and try to understand the perspective. If I still disagree, I present data or alternatives respectfully and align with team goals.

💡 Personality Question

Q: What’s your personal learning strategy with fast-changing tech like Swift and Firebase?A: I dedicate weekly time for hands-on exploration, follow Apple and Firebase blogs, subscribe to technical newsletters, and contribute to side projects to apply new features.

📁 Project Management

Q: How do you estimate timelines for features you’ve never built before?A: I break the feature into smaller, known components, estimate each part, add buffer time, and validate with the team or spike tasks. I also communicate that it’s an estimate, not a deadline.

🧑‍🤝‍🧑 Team Management

Q: How do you balance junior developer growth with project deadlines?A: I assign small production tasks to juniors, review code together, and ensure they shadow seniors during sprints. I avoid putting pressure by pairing them with mentors while meeting client timelines.

Have a mobile app idea or stuck in development?Get expert help with iOS, SwiftUI, Flutter, Firebase, and more — contact me at qmshahzad@yahoo.com.

 
 
 

Recent Posts

See All
{{ $('Get Ready Post').item.json.Title }}

AI agent workflows are shifting enterprise spending. Gartner predicts AI inference costs per agentic workflow will increase more than 5x through 2028 as systems shift from basic LLM prompts to continu

 
 
 
{{ $('Get Ready Post').item.json.Title }}

Cloud-based AI has two persistent problems for mobile developers: latency, because every inference call is a round trip to a server, and privacy, because user data has to leave the device to be proces

 
 
 

Comments


© 2025 by Shahzad. Powered and secured by QMShahzad

bottom of page