Archive for Tutorials

How Instruments can be used to fix a graphics performance issue

Lately, I have been investigating an issue a customer of mine’s app showed. My customer’s app is a sort of PDF viewer that also allow to add annotations. Such annotations are not stored in the PDF itself, instead they are managed in a custom way and drawn on top of the PDF in a dedicated […]

What’s new in iOS 7 User Interface – Part 2: Deference

In a previous post, I began describing what changes the introduction of iOS 7 brought to iOS UI/UX dimension. In that post, I listed 4 main principles shaping the idea of iOS flat-UI: Clarity Deference Depth Detail Here I will try and clarify what a “deferent” UI should be. Again in the New Oxford American […]

Hitchhiker’s guide to MKStoreKit

In-App Purchase is one of those great feature of the iOS ecosystem that I wish were easier to understand and implement in my apps. In the end it is just a machinery that will not really add value to my apps, and it would be great if the Apple motto “it just works” could be […]

iOS6: dynamic autorotation

One of the most intrusive changes brought by iOS6 is the way autorotation is handled in UIViewControllers. If you have an autorotating app for iOS5, you will need to change it to correctly support autorotation under iOS6. If you develop an app which is supposed to run both on iOS5 and iOS6, then you will […]

Playing a secondary theme in Cocos2D

Cocos2D offers CocosDenshion, an easy to use framework to work with audio. CocosDenshion allows you to play a background music and then some effects on top of that. This is clearly aimed at games and it usually works really well. The difference between background music and effects is summarized as follows: background music is thought […]

cocos2d and the new retina iPad – take 2

I described in a previous post about cocos2d and the new retina iPad a quick solution to the problem of supporting higher-resolution images. The main objective of that work was to make easier re-building your app for submission on the App Store before  you could possibly provide higher-resolution images for the new iPad. I mentioned anyway […]

Boundary value analysis for bug fixing

Anyone who has worked in quality assurance or is serious about testing knows about a technique used to define test cases that is called boundary value analysis. Here is how Wikipedia describes it: Boundary value analysis is a software testing technique in which tests are designed to include representatives of boundary values. [...] Since these […]

Smoothing CCGridActions in Cocos2D for iPhone

CCGridActions are a great feature of cocos2d. They provide nice 2D and “3D” effects that you can use to make your app or game appearance more appealing. I have already written about them, mostly about the high cost the exact in terms of CPU time (and FPS), what makes them barely usable in a real, […]

How to give UIWebView Rounded Corners and a Shadow

If you would like to give your UIWebView rounded corners, you can find several recipes on the web, all ending up in this code snippet: webView_.layer.cornerRadius = 10; webView_.clipsToBounds = YES; This will produce a nice rounded corner web view like in the picture below. Everything wonderful. Now, what about a shadow below the web […]

Pinching and Panning with Cocos2s and UIGestureRecognizer

I have had a hard time lately to get zooming and  scroll to work in a Cocos2d based  app that I am writing. Indeed, there are many tutorials that you can find on the Web, but none that could really give me that crucial hint at how to make everything work out well. So, here […]

Copyright © Labs Ramblings

Built on Notes Blog by TDH
Powered by WordPress

That's it - back to the top of page!