Category Archives for UIKit

Passing Data Between View Controllers

Passing Data Between View Controllers

Passing data between view controllers is a very common task. Depending on the circumstances, there are several ways to accomplish this. 

Continue reading
UIKeyCommand

UIKeyCommand: Defining Keyboard Shortcuts

In this article we will take a look at UIKeyCommand, which allows you to define custom keyboard shortcuts in your apps.

Continue reading
UITableViewTutorial

UITableView – Tutorial For Beginners

UITableView is one of the most important user interface components on iOS. In this tutorial you will learn all the basics you need to know.

Continue reading
peek and pop

3D Touch: Peek And Pop

Besides quick actions, peek and pop is another very interesting 3D Touch feature. By using it you can quickly preview content, for example emails or websites.

Continue reading
automatic row height

UITableView: Automatic Row Height

UITableView is definitely one of the most important UI components, and you can find it in almost every app. Very often the content is dynamic – and so is the length of the content. In this case you need table view cells, that have different sizes. You could calculate these sizes manually, but that’s a […]

Continue reading
UIScrollView

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 it’s a little bit tricky to do it subsequently, it doesn’t take a lot of time to do so.

Continue reading
UITableViews

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. Even worse, it will become very difficult to change the implementation of the UITableView later on. But you can structure UITableViews by using enums.

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 Date Picker contained in a Table View Cell.

Continue reading
UIActivityIndicatorView

UIActivityIndicatorView

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

Continue reading
UITableView

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

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

UIPopoverPresentationController

Since iOS 9, UIPopoverController is deprecated. Time to look at UIPopoverPresentationController, which has been introduced in iOS 8.

Continue reading