Posts tagged as: Intermediate

Tutorial: Asynchronous HTTP Client Using NSOperationQueue

October 19th, 2012 Posted by: - posted under:Articles » Tutorials - 11 Comments

Recently here at ELC, we’ve been working on an app that requires a lot of server interaction, which has been a learning experience for managing threading, server load and connectivity. In order to keep the app performant and responsive while sending a large number of requests and aggregating a large set of data, our team had to intelligently manage and prioritize network interactions.
This is where helps out. This class relies heavily on Grand Central Dispatch …


Unzipping Files In iOS Using ZipArchive

August 13th, 2012 Posted by: - posted under:Tutorials - 20 Comments

In this tutorial, I am going to demonstrate how you can zip and unzip files from within your iOS applications. We will be using a third party library called ZipArchive to achieve this. While there are a couple solutions out there to zip and unzip files, I feel that the ZipArchive library was the fastest and easiest way to get up and running.
Why Would I want To Unzip Files?
That’s a great question. There are a number of …


Simple Sqlite Database Interaction Using FMDB

November 4th, 2011 Posted by: - posted under:Tutorials - 16 Comments

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 times when raw …


Subclassing Class Clusters

October 10th, 2011 Posted by: - posted under:Articles - 2 Comments

Subclassing is something any object oriented programmer is pretty familiar with. Common examples would be that a square is a subclass of a rectangle. This means that all squares are rectangles, and hold all properties of rectangles but not all rectangles are squares. Squares are a special subset of rectangles that have both sides being the same length. Objective-C has become so evolved that you may use this simplified conceptualization for all objects in Objective-C when in reality there is …


Dynamically Controlling Your Application From The Web

September 30th, 2011 Posted by: - posted under:Tutorials - 9 Comments

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, …


Timing Out An Application Due To Inactivity

September 19th, 2011 Posted by: - posted under:Tutorials - 6 Comments

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 …


More Informative NSLog’s with Prefix Headers

August 29th, 2011 Posted by: - posted under:Snippets » Uncategorized - 4 Comments

Hello iCoders,
I have a quick tip today that I have been using in some of my development that you guys may find helpful in yours. Lately I’ve been developing a Framework. We mentioned a little something about it earlier here on iCodeBlog. When developing a .framework, a lot of times during my work I couldn’t place break points in the code and had to rely mostly on NSLog. NSLog however really wasn’t doing the job for me. So I …


Disable the iPhone’s Front Camera

August 23rd, 2011 Posted by: - posted under:Tutorials - 4 Comments

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 …


UIColor + Digital Color Meter

April 11th, 2011 Posted by: - posted under:Snippets - 9 Comments

Hey iCoders,
Short post today on a little tool I made for myself that is turning out to be very useful. This is a simple UIColor category which adds a class level initializer that accepts the color strings output from the Digital Color Meter application in OS X. I regularly make iOS apps which refer to design PDF documents. Many times designers don’t provide exact details to what colors are in the design. To get them I use the Digial Color …


Facebook SDK – Posting to User News Feed

March 28th, 2011 Posted by: - posted under:Tutorials - 72 Comments
What the Posts will look like!

Hello, I’m () and I recently finished working on . Many applications use Facebook for posting content from their respective applications, there could be infinite items that a developer would like to post to users feeds whilst using their applications but today we will be focusing on posting a link to a users feed.
In order to get started using the Facebook SDK & API’s you will need to download the latest copy …