Objective C & iOS Weak Singletons
Posted in Tutorials on: February 12th, 2013 by: Andy Yardley
Temporary shared memory management is always a bit of a difficult problem to solve. There are various well known ways of dealing with this problem but recently i’ve come across a novel solution to this problem that actual takes advantage of Objective C’s Automatic Reference Counting (although it could also work without ARC) The singleton pattern is used in quite a lot of applications i’ve worked on, usually it retains some objects in memory and can exist for the lifetime ...
Read Full Article
BSON – What, why, how ?
Posted in Getting Started, Tutorials on: February 10th, 2013 by: deepukjayan
BSON is often referred as Binary JSON. BSON is the serialization of JSON-like objects that are binary encoded. Just like JSON, BSON also supports nested objects, arrays, strings, integers etc. BSON supports some more data types, especially raw binary data. So we can consider BSON as a super-set of JSON. BSON is designed to be fast to transport and fast to decode. The main features of BSON are: Traversable Light weight and Efficient Lets stop lecturing about BSON and move on to discussion regarding ...
Read Full Article
How to Populate a UITableView From a plist (property list)
Posted in Tutorials on: January 28th, 2013 by: Nick Petrov
Start a new “single view” project (I named it PopulateUITableView). Delete ViewController.h and ViewController.m from the project navigator (command+1). Open MainStoryboard.storyboard and delete the scene that came with the template. In the object library find a Table View Controller and drag it as a new scene. This is what the project should look like at this point. To manage the table view we need to create a new class TableViewController that is a s subclass of UITableViewController. (command+N) create a ...
Read Full Article
How to trace and debug an iOS crash (Part 1)
Posted in Tutorials on: November 5th, 2012 by: Markos Charatzas
There has been a crash. While preparing for an iOS release, observed a crash on an iPad (iOS 4.3.3, WiFi). The crash was fairly consistent to be considered random but once in a while, it would work as expected. On the other hand, an iPad 3 (iOS 5.1, WiFi/3G) wouldn’t exhibit the same behaviour. The crash was triggered at the completion block of an AFHTTPRequestOperation while parsing a (JSON) response with an empty body to a NSDictionary using JSONKit. This ...
Read Full Article
Quick iOS Tip: Change the title of cancel button in UISearchBar
Posted in Tutorials on: April 29th, 2012 by: Jesper Nielsen
If you are writing a iOS app that contains of UITableView along with a UISearchBar, you might want to change the title of the cancel button, i.e. if you’re localizing your app.
Read Full Article
Getting information about your users – using Localytics in your app
Posted in Resources, Tutorials on: April 9th, 2012 by: keithmkolmos
You’ve been working on your new app for months. You have created your beta build and send the app out to your army of beta testers. Now that you have people playing your app how do you know how they are interacting with it? You could spend money and do focus group testing – gather a bunch of people at one place and actually look over their shoulder while they play. Seems kind of intrusive to me, but you need ...
Read Full Article
Implementing ads in your iOS Application
Posted in Getting Started, Tutorials on: March 21st, 2012 by: Jesper Nielsen
In iOS 4.0 Apple introduced the iAd framework, making it possible for iOS developers to include ads in their apps, and thereby earning revenue as the app users view or interact with the ads. But iAd isn’t available in all countries. At this time the iAd network is only available in: The U.S., U.K., France, Germany, Italy, Spain and Japan. If your primary customer base isn’t in one of the mentioned countries, don’t worry. There’s a lot of alternative ad-frameworks ...
Read Full Article
iOS: Opening doors effect after an app launches
Posted in Tutorials on: February 4th, 2012 by: Paul Ledger
There are a number of apps in the App Store that launch with a set of closed doors, these are then opened to present the actual UI underneath it. I had to create this effect for an app I wrote for a client http://itunes.com/apps/jkmuaythai I’d assumed when I started that this would be a relatively simple task, just take the initial default image, cut it in half and a simple bit of animation would move them out of the way. ...
Read Full Article