Archive for Tutorials
Recently, I came across this post and fell in love with the idea of using XCode 4 snippets. Up until I read the post, I had heard they existed, but never really tried them. After reading the post, I began using his snippets as well as started creating my own. Now, I would say that my work-flow is faster than ever.
Here is a quick demonstration of the power of snippets
Type:
ttt
It generates:
#pragma mark – UITableView …
As most of you probably know, UITableView’s are incredibly useful and versatile views to be using in your applications.
If you have ever tried to customize a UITableView though, you know that as soon as you start adding lots of UIViews, UILabels, and UImageViews to a cells ContentView, that these tableviews start to scroll slower and slower, and become choppier and choppier.
What we are going to explore today is how to remedy that situation.
To download the entire XCode project, you can …
If you’re working with AddressBook.framework chances are you’ll want to import your own data to test against when you’re in the simulator. Without being able to sync with iTunes or iCloud you may think you’re stuck entering in addresses manually; not only is that a huge pain, but there are probably lots of edge cases already in your address book you wouldn’t necessarily think of.
Fortunately there’s another option, with a tool called iPhone Backup Extractor. Download it, run it …
Introduction
In the age where Core Data is king, the database that started it all is often overlooked. I’m talking of course about sqlite. As you may or may not know, prior to core data, sqlite was the preferred method of storing relational data on iOS devices.
Although, most developers don’t interact with sqlite directly, they still use it under the hood as the primary data store for core data. This is great and all, but there are often …
Introduction
In today’s post, we are going to be discussing view controllers. Let’s start by talking about what a view controller is and it’s role in your iOS projects.
What is a View Controller?
View Controllers are at the core of every application. They act as sort of the glue between your models and your views. View controllers are both responsible for fetching/initializing your models as well as loading up your views to display the information within them.
Basic View Controllers
Every …
Often times you find yourself in a situation where you might want to control your application remotely. You may want to enable/disable features at a certain time, push messages to all of your users, or do some cross promotion whenever you launch a new application. All of this can easily be done with a little JSON and some simple web interface coding.
In this tutorial, I will show you how to use ASIHTTPRequest along with JSONKIT to fetch, parse, …
In the recent months, I have had a few separate applications that required a “timeout”. What I mean by this is, the application should log the user out if they haven’t touched the screen in X number of minutes. There are quite a few uses for this, but the best use is when you have an application that contains sensitive data in a shared environment.
For example, say your company uses iPads to collect feedback from your …
Have you ever looked at the enumerateObjectsUsingBlock method of NSArray and wondered how you might use that design pattern in your own application. In this tutorial, I will be showing you how to do just this. We will be writing methods that accept blocks as arguments as well as learning how to declare block ivars and properties.
This tutorial assumes that you have at least a basic understanding of using blocks and Grand Central Dispatch (GCD). If not, …
The iPhone 4′s front camera is limited to 640×480 resolution. Although handy for video conferencing, for some apps that’s to small to yield a usable photo. Unfortunately the UIImagePickerController class does not have an option to restrict the user from using the front camera. Although you can check the size of the photo after the user is finished, it’s not great user experience to reject it after they go through the entire process of taking a photo.
One option is to …
Today I’m going to show you how to make a simple “Hello World” project on the iPhone. There are quite a few ways that this can be accomplished, however I am going to show you the way that I feel will be the most beneficial.
While I know many of iCodeBlog’s readers are veteran developers, this tutorial (and many in this series) are going to be geared towards the more novice developer. This group is often overlooked when it comes to …
Workout of the Day