Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
iOS 14 Programming for Beginners

You're reading from   iOS 14 Programming for Beginners Get started with building iOS apps with Swift 5.3 and Xcode 12

Arrow left icon
Product type Paperback
Published in Nov 2020
Publisher Packt
ISBN-13 9781800209749
Length 766 pages
Edition 5th Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ahmad Sahar Ahmad Sahar
Author Profile Icon Ahmad Sahar
Ahmad Sahar
Arrow right icon
View More author details
Toc

Table of Contents (31) Chapters Close

Preface 1. Section 1: Swift
2. Chapter 1: Getting Familiar with Xcode FREE CHAPTER 3. Chapter 2: Simple Values and Types 4. Chapter 3: Conditionals and Optionals 5. Chapter 4: Range Operators and Loops 6. Chapter 5: Collection Types 7. Chapter 6: Functions and Closures 8. Chapter 7: Classes, Structures, and Enumerations 9. Chapter 8: Protocols, Extensions, and Error Handling 10. Section 2:Design
11. Chapter 9: Setting Up the User Interface 12. Chapter 10: Building Your User Interface 13. Chapter 11: Finishing Up Your User Interface 14. Chapter 12: Modifying and Configuring Cells 15. Section 3:Code
16. Chapter 13: Getting Started with MVC and Collection Views 17. Chapter 14: Getting Data into Collection Views 18. Chapter 16: Getting Started with MapKit 19. Chapter 17: Getting Started with JSON Files 20. Chapter 18: Displaying Data in a Static Table View 21. Chapter 19: Getting Started with Custom UIControls 22. Chapter 20: Getting Started with Cameras and Photo Libraries 23. Chapter 21: Understanding Core Data 24. Section 4:Features
25. Chapter 22: Getting Started with Apple Silicon Macs 26. Chapter 23: Getting Started with SwiftUI 27. Chapter 24: Getting Started with Widgets 28. Chapter 25: Getting Started with App Clips 29. Chapter 26: Testing and Submitting Your App to the App Store 30. Other Books You May Enjoy

Making your app run on all iOS devices

Before you can make a Mac app from your existing iOS app, you need to modify the user interface to work with the iPad. To see what changes will need to be made, you'll build and run your app on the iPad simulator. Follow these steps:

  1. Close the simulator if it is running. Choose iPad Pro (9.7-inch) from the list of simulators in the Scheme menu and run your app:

    Figure 22.5 – Scheme menu with iPad Pro (9.7-inch) selected

  2. The iPad simulator will launch and appear as shown in the following screenshot:

Figure 22.6 – iPad simulator showing the Explore screen

As you can see, the collection view on the Explore screen automatically takes up the whole width of the screen, and the collection view cells are the same size that they were on the iPhone. Even though you can use exactly the same user interface for both the iPhone and iPad, it would be better if you were to customize it to suit each device...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime