Recent Posts
Subscribe
Subscribe to the RSS feed or enter your e-mail in the form below, and get updates, cheatsheets, whitepapers and more.

Your Email:


Posts Tagged ‘objective-c’

Beginners iPhone Action Game Tutorial: Source Code

A few weeks ago I posted a short video similar to this one:

UPDATE: Tutorial Has been posted!

I’ve been asked since then when I would come out with the tutorial.   I was finally able to get around to completing the source file, and I’ve added line by line (well pretty close) comments in plain english to make it easier to follow.

The above video utilizes the exact source code from this tutorial running in the iPhone simulator.

Phonegap And iWebKit Demo (Video and Source)

Randy McMillan sent me information on an example that he has posted this time illustrating the usage of Phonegap and iWebKit.

I have created a short video demoing the example in action:
This video was embedded using the YouTuber plugin by Roy Tanck. Adobe Flash Player is required to view the video.

Custom Behavior On Return For A UITextView

The default behavior for a UITextField on pressing the return key is to execute the textFieldShouldReturn: method of the UITextFieldDelegate.

What if we wanted to create similar behavior with a a UITextView which does not have an equivalent method and by default just creates a new line?

Nick Dalton has come up with a snippet of code that uses the:

textView:shouldChangeTextInRange:replacementText:

method of the UITextViewDelegate to do just that.

Getting Subclasses in Objective-C

One of the things that makes the Objective-C language “different” from most other object oriented programming languages is that there is no simple command that allows you to print the subclasses of a class.  I noticed this early on when using the language, and had to work around this.  I don’t know why Objective-C doesn’t have a simple command for doing this (to be honest I never thought about it until this moment), but recently I saw an article on exactly this, and found a few ways to print out those subclasses.

iPhone Game Programming Tutorials With Video

Just like to turn you guys on to what are the best video iPhone game programming tutorials on the web so far in case you haven’t seen them.  Please note that this is not the simplest iPhone game tutorial as you will be building an OpenGL game engine from scratch.  This does also make this a great iPhone opengl tutorial.

– Update Jan. 2nd 2010 – Tutorial 11 has been added, and I have upgrade this list to reflect that.