If you are an iOS developer who is trying to find a better way to write Objective-C drawing code for CoreGraphics or Quartz, there maybe a better way for you. If you are starting to learn CoreGraphics and Quartz, part of iOS APIs, there may be a tool for you. If you are looking for a way to design iOS applications that will automatically scale from 1X to 2X resolutions in order to support Retina Displays, there may be a tool for you.

Look what we have here: Paintcode.

Paintcode is a drawing application that generates Objective-C in order to draw visual objects using Cocoa APIs: Quartz and Core Graphics.

The basic workflow of Paintcode is very simple: before starting to draw shapes, you first define the colors that will be part of the color palette of your project, then you build gradients based on these basic colors and finally you create shadows. Created objects will then use these colors, gradients and shadows as you wish. Changing a single color will be reflected everywhere from the shapes to the gradients and shadows that are build on this basic color.

Objects attributes include identify names that are used for variables naming in the generated code. Very precise control for everything is available. Live preview of code generation is how Paincode works so you always get an up to date Objective-C code. By the way, depending if you are developing an iOS application or a Mac OS X application, you can switch between the two for generated code flavour. For project examples, go to http://www.paintcodeapp.com/examples.html and see for yourself to get a better idea of what Paintcode can do.

Usage of Paintcode are many: Learn the basics of UIKit/AppKit graphical programming in Quartz and Core Graphics. You’ll save quite some time of trial and error for programmers who are not good at graphic designs programmatically. Those who wants quick results in having up and running drawing code in their projects will appreciate Paintcode.

What is missing or could be improved? The application could include other basic graphical elements like glass overlays that we often see on iOS navigation bars for example. Full screen mode is not available for Lion users. But remember, this is version 1.0 of an application with a lot of potential. According to the developers, the next update will add PNG export, blending modes  and bug fixes. Another thing that could help the developer is to wrap the generated code in an object that could be easily be integrated in the developer’s application code. Right now, the code needs tweaking in order to be used.

One observation on application pricing: some developers find the 79$ price tag a bit steep but I don’t think it is: it may be too easy to compare to other lower priced applications on the Mac App Store. I think you have to look at the inherent value of the application: you’ll save time by using it. Recently, PixelCut added a demo version that you can download and try for yourself which is a good thing for a 79$ application.

I look forward to see how Paincode will evolve in the near future.

Problems?

We have a new Questions and Answers section so you can get help from the awesome community.

Ask a Question

Enjoyed this post?

Subscribe to our RSS Feed or Follow us on twitter to keep up to date with the latest from iOS-Blog. Remember, Sharing is caring so please click one of the following options:

Tags: , ,