Core Data for iOS: Part 1 – Data model

In the Model-View-Controller pattern, which is the base of any iOS app design, the Model component plays an essential role. It represents the data on which the app operates. The user indirectly interacts with it through the View component of the MVC, while the Controller mediates the communication between the Model and the View. Core Continue reading…

 

Collection view with self-sizing cells

This article is the logical continuation of the blog post I’ve written last week about the self-sizing cell in tableviews. This time we will take a close look at the auto-adapting cells in collections views. The sample project is available for download on GitHub. Before going further, you should know that self-sizing cells are supported Continue reading…

 

Table view and size-adapting cells

Table views are one of the most commonly used UI components in iOS apps. They usually display text with varying lengths. Prior to iOS7, developers had to calculate the height of each cell to accommodate to its content, and provide it in the table view delegate method -tableView:heightForRowAtIndexPath:. Now the cells self-sizing behavior can be Continue reading…

 

Resizable text field

The recent years, Apple introduced several new screen sizes for its mobile devices, and this trend will probably go on for some time. With the multiplication of screen sizes and resolutions, the safest and easiest way to support as many devices as possible is to adopt Auto Layout, follow along with UIKit enhancements and try Continue reading…

 

Background fetching using NSURLSession

Most mobile apps aren’t open very often and tend to stay in the foreground for short time. If the app frequently updates its content from remote sources or if it occasionally performs large data transfers (like downloading audio or video files), since iOS 7 it’s possible to run this kind of tasks while the app Continue reading…

 

Introduction to NSURLSession

As part of the connected world, many apps consume content from online sources or transfer the data they produce to external repositories on the Internet. Available since iOS2, NSURLConnection and its related classes handle URL requests and manage the data transfer using the standard Internet protocols. They encapsulate the complexity of data communication is an Continue reading…

 

View controller transitions with UIKit Dynamics – Part 2

This article is a follow-up to the previous blog post and shows yet another way to implement animated view controller transitions using UIKit Dynamics. Before iOS7, it wasn’t easy to create custom transitions between view controllers and, more often than not, developers limited themselves to using the classic push and modal presentations and their standard Continue reading…

 

View controller transitions with UIKit Dynamics – Part 1

There currently are several methods to implement custom transitions between view controllers, other than the standard modal and push / pop transition, well known since the first days of iOS. Most commonly, custom transitions involve using the UIViewControllerAnimatedTransitioning protocol. It enables to create interesting animations when view controllers appear on the screen, either automatically or Continue reading…

 

UIKit Dynamics overview

Introduction UIKit Dynamics was introduced in iOS7 as part of the general trend of replacing the skeuomorphic elements in user interface design by more subtle, motion based effects. Dynamics is a set of UIKit APIs that operate as an internal physics engine and emulate real world 2D animation behaviors applied to the elements visible on Continue reading…

 

Custom views and Auto Layout

Auto Layout is a powerful system that manages how the views are displayed on screen in relation with their content and the other parent and sibling views. This system was introduced by Apple in OS X 10.7 and iOS 6, and seems to be here for the long term. The constraint based layout supported by Continue reading…