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

Working with scroll view

Scroll view is a subclass of UIView that helps you add multiple views so that the sum of their height is larger than the height of super view. It lets you scroll between subview horizontally, vertically, or both at the same time; user can scroll with swipe and pan gestures. Scroll view provides the functionality to zoom its content by allowing a user to pinch zoom the content. This native component has an impressive set of APIs that provides you with flexibility and features to manage scrolling, zooming, and content size. Before getting into the UITableView, UICollectionView, or UITextView native components, you have to be experienced with UIScrollView because it is the superclass for all these views.

Getting ready

Before getting started with our example, I want to point out some properties in UIScrollView that are used heavily while dealing with it. The following is a list of the most important properties that you should be aware of:

  1. contentSize: It's the size of the...