I attended the Berlin Tech Talk conference on november 2. The last talk was given by Michael Jurewitz and was titled Your iOS App Performance Hitlist. This talk was excellent, the best in my opinion (But that’s because I love talking about performances), and it was focused on using Instruments.
Continue reading
Category Archives: Coding Practice
Efficiently build a gallery like Photos.app
Quite often people wants to build a gallery like Photos.app for their iOS application. The exercise is really not difficult, but it’s also easy to kill your device memory if you don’t take the time to think of an elegant way to do it.
Continue reading
The truth about synchronous NSURLConnection
In this post, I’ll talk about NSURLConnection, the advantages and disadvantages about synchronous versus asynchronous connections. At the end I show a snippet of code on how to use an asynchronous NSURLConnection on a secondary thread into a concurrent NSOperation.
Continue reading
UIImage scaling using ImageIO
In this post I’ll explain what is the best way to create scaled images for iOS and Mac OS applications. By best way, I mean the most efficient one, because it’s a common operation to manipulate images, and so it should not penalize your application too much.
Continue reading
colorWithPatternImage abusive memory usage
Today I just discovered something I was not aware of, as the title of the post suggests, it’s about the 2 UIColor’s methods colorWithPatternImage and initWithPatternImage. It turns out these 2 methods using a lot of memory, way more than we would expect.
Continue reading
Collections and Integers, a matter of performance
In this post I talk about 2 different way to store integers values in a collection (Array, Set, Dictionary) and we will see that one of the 2 methods can give you far better performances, especially on an iPhone.
Continue reading
NSDateFormatter performance
In this post I talk about NSDateFormatter and how to use it correctly in your applications, especially iPhone ones, because a misuse of it can cause serious performances issues.
Continue reading
Improving NSLog()
When you debug an app, you often need to print informations on screen to check out if everything is ok etc… But when you are done and you are ready to release your application it’s a real pain in the ass to comment or remove all the call to these functions, plus they might be useful later.
Continue reading
Coding an Apple compliant Daemon
In a precedent article I was showing you how to prevent a disk from mounting on the file system, at the end of the artcile I said that it would probably be best if this kind of program could run as a daemon, so this is what I’ll show you in this post, to begin let’s take a look at the precedent code :
Continue reading
[How-to] Debug a Preference Pane with XCode
Here is a quick tip to help you debug your Preference Pane with XCode, because debugging with NSLog() is painful and not very productive.
Continue reading