Category Archives for UIKit

Embedding a Whole Screen Into a UIScrollView Subsequently

Sometimes you want to add something to a screen and then you become aware that there’s just not enough room. So it would had been a great idea to put everything into a UIScrollView all along. Though

Continue reading

Structuring UITableViews by Using Enums

UITableViews are obviously one of the most used user interface elements on iOS. However, if you are dealing with UITableViews that have a lot of different sections, your code can become messy quickly.

Continue reading

How To Show And Hide A Date Picker From A Table View Cell

If your app needs a date and/or time to be chosen, sometimes it is best not to have the user segue to a different View in order to accomplish this. This tutorial will demonstrate how to show and hide a

Continue reading

UIActivityIndicatorView

You use an UIActivityIndicatorView to indicate the user that something is going on. For example, that could be a calculation or a network request – basically everything that takes same time. Creating

Continue reading

The Most Common Mistake In Using UITableViews

UITableView is one of the most important user interface objects you are using in iOS development. However, there is one common mistake in using UITableViews that could drive you crazy.

Continue reading

UIAlertController

UIAlertView and UIActionSheet are deprecated since iOS 8. The new way to go is UIAlertController, which can be configured  as an AlertView or as an ActionSheet.

Continue reading

UIPopoverPresentationController

Since iOS 9, UIPopoverController is deprecated. Time to introduce the UIPopoverPresentationController, which is available since iOS 8.

Continue reading

Using Custom Fonts

Out of the box iOS provides you a rich set of fonts. But sometimes there is the need to add another font to your project. For example, this could be one of the Google Fonts, which are open source.  In

Continue reading

Loading a View from a XIB

Generally, there are two ways to layout views: building it in interface builder or by coding. Both ways have their applications, but in many cases the interface builder way is more comfortable. If you

Continue reading

Outsource your UITableViewDataSource!

It is very common, that the controller of an UITableView is also its data source. This is the number one reason why view controllers tend to become very huge. Outsourcing the data source to an object

Continue reading