Archive for the “Core Services” category

iOS And JSON Part 2 – Deserialize JSON To Native Objects

by John Muchow on March 6, 2013

Use the Apple class NSJSONSerialization to deserialize JSON into native objects in Objective-C.

iOS And JSON Part 1 – Serialize Objects To JSON

by John Muchow on March 4, 2013

How to serialize iOS Objective-C objects into JSON using Apple’s NSJSONSerialization class.

How To Programmatically Dial Phone Number With And Without User Interaction

by John Muchow on February 20, 2013

iOS trick to programmatically dial phone call with and without user interaction.

How To Get Available Fonts On iPhone Or iPad Using Blocks

by John Muchow on February 5, 2013

Back in November of 2008 I wrote an example to show how to get a list of all the fonts installed on a device: Available Fonts on the iPhone In this post I will show you how to get the (…)

Read the rest of this entry »

Troubleshoot Push Messages By Logging APSD Process

by John Muchow on December 4, 2012

Troubleshoot Apple (APNS) Push Message – Technical Note TN2265 tn2265_PersistentConnectionLogging.zip download

Create Universally Unique Identifier (UUID) The iOS 6 Way

by John Muchow on November 5, 2012

Code to create a Universally Unique Identifier (UUID) aka Globally Unique Identifier.

Read info.plist Key-Value Pairs

by John Muchow on October 16, 2012

Read info.plist valies in an iOS app.

View All Notifications Sent To Your Application

by John Muchow on September 13, 2012

This tip shows how to see all notifications that are generated while running your application. This can come in handy if you need to understand the types of notifications available and the order they occur, with the idea that your (…)

Read the rest of this entry »

Lists Of Custom URL Schemes

by John Muchow on July 16, 2012

Mobile Developer Tips has written a number of posts about how to define and call Custom URL Schemes: – Check If Custom URL Scheme Is Defined – Launching Your iPhone App Via Custom URL Scheme – Launching iPhone Apps With (…)

Read the rest of this entry »

Check If Custom URL Scheme Is Defined

by John Muchow on July 15, 2012

Custom URL Schemes are the Apple approved way for one application to communicate with another. For example, you can launch the phone application to make a call using the custom URL tel://. Likewise, you can call a third party (non (…)

Read the rest of this entry »

Display All First And Last Names In The Address Book

by John Muchow on June 11, 2012

This tips demonstrates how to print the first and last names for all entries in the iPhone Address Book to the console. Start by including the following import statement: #import <addressbook /AddressBook.h> </addressbook> Also, add the AddressBook.framework to your project. (…)

Read the rest of this entry »

Creating Repeating and Non-Repeating Timers

by John Muchow on February 28, 2012

Let do a quick run through of the basic operation of the NSTimer object. Timers are generally divided into one of two buckets, repeating and non-repeating. In either case, a timer event is fired after a specified amount of time (…)

Read the rest of this entry »

NSClassFromString to Check for Class Availability

by John Muchow on February 15, 2012

I recently received a question about how to check if a class is available – the specific question was in regards to the TWTweetComposeViewController. There are two common ways to check for a class. First, if a feature is tied (…)

Read the rest of this entry »

Remind Users to Restart Your App

by John Muchow on February 8, 2012

This tip shows you how to create a local notification that will be trigged when a user exits your application. I would recommend you use this sparingly, for example, if the user was in the middle of setting up configuration (…)

Read the rest of this entry »

Get List of Installed International Keyboards

by John Muchow on December 27, 2011

The NSUserDefaults object is typically used to save/restore your application related preferences, configuration data, etc – see Write and Read User Preferences for more information. In addition to application specifics, there is a system wide default list that is available (…)

Read the rest of this entry »