Book Image

iOS Programming Cookbook

By : Hossam Ghareeb
Book Image

iOS Programming Cookbook

By: Hossam Ghareeb

Overview of this book

Do you want to understand all the facets of iOS programming and build complex iOS apps? Then you have come to the right place. This problem-solution guide will help you to eliminate expensive learning curves and focus on specific issues to make you proficient at tasks and the speed-up time involved. Beginning with some advanced UI components such as Stack Views and UICollectionView, you will gradually move on to building an interface efficiently. You will work through adding gesture recognizer and touch elements on table cells for custom actions. You will work with the Photos framework to access and manipulate photos. You will then prepare your app for multitasking and write responsive and highly efficient apps. Next, you will integrate maps and core location services while making your app more secure through various encryption methods. Finally, you will dive deep into the advanced techniques of implementing notifications while working with memory management and optimizing the performance of your apps. By the end of the book, you will master most of the latest iOS 10 frameworks.
Table of Contents (22 chapters)
iOS Programming Cookbook
About the Author
About the Reviewer
Customer Feedback

Designing your interface builder for any size classes in one storyboard

Autolayout doesn't solve all your problems in building the UI screen. The big change nowadays in all screen sizes in iOS leads to different behaviors based on screen size. To build a universal app (iPhone and iPad) at the same time, most probably you need to build to two storyboards, which means you have to put in double efforts. However, what if you have a different UI in a landscape mode, 99% percent you would write code to handle this stuff, which is painful. More painful is the iPhone 6 plus screen size, which is huge enough to hold more details than the other iPhones, where some apps have a different UI only specific for iPhone 6 plus. Check out the following two screenshots for the Calendar app in landscape mode.

Here is the screenshot in any normal iPhone:

Here is the screenshot for iPhone 6 plus:

As we see in landscape mode, it can hold too much information, such as the concept of split screen. These kinds of...