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

Archive for the ‘Cocoa’ Category

Async downloading of data

This code shows you HOW to achieve something and it is not intended as a copy-paste solution. My post about using a NSURLConnection in a different thread has been read a lot. I made this post almost 3 years ago and I would like to show you

Read more

A circle progressbar

For a small application I wanted to write, I wanted to make a progressbar that is a circle instead of a normal horizontal bar. I wanted to press a button, which is just a normal image and then have a circle go around it, showing the progress.

Read more

Using the interface orientations from your project definition

I have always been annoyed by the way you have to handle your interface orientation detection and which orientations you allow for your application. You can specify the orientations in your project’s plist file, but I am not completely sure why the UIViewControllers don’t use this by

Read more

Protected: Localize your UIViews (the easy way)

There is no excerpt because this is a protected post.

Read more

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

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