Here is some iOS code that allows you to generate your own terrain in a 2d iPhone side-scrolling style game by simply dragging your finger up and down. The possible potential uses are endless. This code uses Cocos2D.

(more…)
Here is some iOS code that allows you to generate your own terrain in a 2d iPhone side-scrolling style game by simply dragging your finger up and down. The possible potential uses are endless. This code uses Cocos2D.

Core Location is a powerful yet simple iOS framework allowing easy access to the iPhone’s GPS. You can access the coordinates of the device with GPS or cell triangulation, compass, and direction and speed of travel.
Apple’s description:
The Core Location framework lets you determine the current location or heading associated with a device. The framework uses the available hardware to determine the user’s position and heading. You use the classes and protocols in this framework to configure and schedule the delivery of location and heading events. You can also use it to define geographic regions and monitor when the user crosses the boundaries of those regions.
In this tutorial you will learn how to access the raw Core Location data, including the iPhone’s GPS coordinates and speed of travel. (more…)
I started to write a tutorial today but got a bit burned out in the process. I will finish it eventually, but here is the code for you to tinker with in the meantime.
The code demonstrates Core Location and makes use of custom protocols. The app updates a UILabel with GPS coordinates and speed of travel. Stay tuned, the tutorial will be finished up shortly!

[Source: CoreLocation GPS Demo - 25k]
As I eventually do with just about all my code, I am releasing iStrobe’s innards to the public. It’s yours, take it. Make sure to abide by the rules though.
Download:
iStrobe Source Code for iPhone 4 – 1.4MB
[App Store: Get It Here]


I updated SpaceBubble to support iAds a while ago but haven’t gotten around to uploading the new code. This is good, because I found a bug in the meantime. This is for the unreleased version which is still in review with all bugs fixed. Enjoy!

The minimum donation requirement to receive a copy of iStrobe’s source code has dropped. Only $25 for licensed and for $100 no license, no restrictions.
Make a donation with the comment “iStrobe Source” and you will be emailed a copy. All donations help fund this site and any left over will help buy books for this coming semester of school. Thanks!
I know I have been fairly silent here lately, but I have been pretty busy. I want to point you all to a resource to hold you over until I get some time to push out another tutorial. John at ManiacDev.com has created a great tutorial utilizing the Sparrow 2D Game Framework.
Be sure to check it out at the source link below.
[Source: ManiacDev.com]
The source code to my iPhone app iStrobe is going semi-open source. If you donate $25 to this site with the comment “iStrobe Source,” you will receive the code under the “Take a kid fishing or hunting license.” If you donate $100 you will receive the code unlicensed so you can do with it what you wish. iPhone 4 LED Flash apps are extremely hot right now. Figuring out exactly how to turn the flash on is 99% of the app and sparsely and indirectly documented. Most who have tried to figure it out have failed miserably. Luckily, I have done the hard part for you. Don’t pass up this opportunity! Plus, the money is going to a good cause, keeping this site up and running, and helping me stay in school.
iStrobe source code contains the following valuable code:
Access to the iPhone 4 LED camera flash Flip view controller iAds Complex asynchronous variable timer system Custom UISlider Custom UIButton Hyperlinked text Data archiving
Click the “Donate” button on the left below the navigation bar to send payment via Paypal.
Apple has officially released the source code to the 1984 graphics application MacPaint as well as the source code to Quickdraw to the Computer History Museum. Follow the link below for more details. Hope you aren’t too rusty with your Pascal and 68000 Assembler programming skills.

The site has some nice history on the development of MacPaint and Quickdraw. I strongly encourage all developers to read it and try not to smile when you read the quotes like this:
When the Lisa team was pushing to finalize their software in 1982, project managers started requiring programmers to submit weekly forms reporting on the number of lines of code they had written. Bill Atkinson thought that was silly. For the week in which he had rewritten QuickDraw’s region calculation routines to be six times faster and 2000 lines shorter, he put “-2000″ on the form. After a few more weeks the managers stopped asking him to fill out the form, and he gladly complied.
[Source: Computer History Museum]
Let’s say you have a view overlaying another view that you would like to close in a fancy fashion when the user click a button, thus displaying the view directly below it. Put this code as your button’s IBAction message handler and tell me that doesn’t spice up your app like crazy! I am not going to explain how it looks, just try it. You’ll love it. It’s a nice use of code blocks too.
-(IBAction)onButtonClick:(id)sender { [UIView transitionWithView:self.view duration:0.2 options:UIViewAnimationOptionTransitionFlipFromLeft animations:^{ self.view.frame = CGRectOffset(self.view.frame, 0, -self.view.frame.size.height); } completion:^(BOOL finished) { [self.view removeFromSuperview]; [self release]; }]; }