objectiveC, C# and more interesting stuff
Call Us: +31 (0) 84 86 78 130

Blog

Using NSLog only in a DEBUG version

I have been using this in a couple of projects. It is a method to only perform NSLog logging when you are using a DEBUG build. There are more than enough reasons why you don’t want to use NSLog in your release builds. First of all, its

Read more

Placing curved text on an UIImage

For a project I am doing for a client, I needed to layout text around a circle in objective-C. I spend a couple of hours searching the internet for this, but somehow when people succeed in doing this, they don’t post their solution online. So, I made

Read more

Localization of your iOS application

For a client I am working on an application that should be available in multiple languages. Well I always created my applications with English in mind, so this was a new one for me. I started this project in Xcode {REDACTED} and I could not get it

Read more

Putting a UIPickerView on a UIActionSheet

Basically there are no really good (and now working) guides on how to put a UIPickerView on a UIActionSheet. Mainly because some things changed with the latest firmware updates made by Apple. Well after some fiddling around, I got it working. Here is how: Step 1: Adding

Read more

Sending an email with an attachment from your iPhone

For Desktop Backgrounds HD (which is currently in review) I wanted to implement a feature called “send image by email”. First I tried to include an image base64 encoded in an URL, with the mailto: protocol, but this resulted in numerous errors. So after a coupe of

Read more

Save an UIView to an UIImage in objective-C

For an application I am making, I am making a view where users can configure all kinds of settings, which has direct effect on an UIView I have. I want to grab that UIView and save it as an image. Well there are examples enough about this,

Read more

Note to self: how to convert hex codes in a NSString

I have been working with Freebase lately and they sometimes encode their strings, so that “special” characters are encoded in HEX. For example, sometimes you receive a string like this: Terminator_2$003A_Judgment_Day. I wanted to convert the weird encoding they use, so I wrote a piece of code

Read more

Using NLog in your web.config

I have been working on my YourRid.es project a bit lately and one of the things I wanted to put in place, was a good logging system. Most of the time I just use a custom build (read: my own shit) logger, but this time I found

Read more

Queueing HTTP requests in objC

For WallPaper I download numerous thumbnails from my webserver at the same time. This is causing slowing speeds (to many threads at once), and too much memory usage (too much image data cached at once). So I looked in queueing the downloads and tried (ofcourse) writing my

Read more

Reading big XML file with C# XmlReader

Today I needed to parse a LARGE (1.9GB) XML file and extract some information from it. Loading it in a XmlDocument (my favorite .NET way of handling XML) wasn’t really a possibility, because that would cause Out of Memory errors the minute I would try it. I

Read more

Bad Behavior has blocked access attempts in the last 7 days.