Developing's blog
Distinct identifier for UIImage - iPhone
Submitted by Developing on Sun, 03/29/2009 - 11:10I was trying to get a specific identifier for an image from an UIImage object. The idea was to get some value to differentiate a picture from another one in a random way. It needed to be random but it needed to be the same value anytime you run it on the same picture.
I wanted to get the same value from a given picture whenever I open it. I wanted my program to determine a certain value of a picture no matter when or where it opens it so that the same output would happen each time for the same image.
How to play audio with the iPhone SDK - iPhone
Submitted by Developing on Thu, 03/12/2009 - 11:09Here is a simple and concise way to load and play any sound file that the iPhone can play.
You’ll need to include the AVFoundation framework.
#import
The following code also assumes that you have the following AVAudioPlayer defined.
AVAudioPlayer *player;
Here is the code to load and play the file.
NSString *soundFilePath =
[[NSBundle mainBundle] pathForResource: @"Sound" ofType: @"mp3"];
NSURL *fileURL = [[NSURL alloc] initFileURLWithPath: soundFilePath];
AVAudioPlayer *newPlayer =
Sexyometer is in the store! - iPhone
Submitted by Developing on Mon, 03/09/2009 - 11:08fter all the complications, Gaydar was rejected and we waited 6 days for Sexyometer to be accepted and on the store. Which seemed like forever but is apparently super fast for the process. We were disappointed that Gaydar wasn’t accepted because we were very proud of it.
But, we improved a lot on it and really enjoy Sexyometer. We’re having fun watching people experience our creation.
If anyone can provide feedback, things you would like to see changed, or any other input let us know at shablabla.iphone@gmail.com.
Caching JS filled fields in Safari - CF
Submitted by Developing on Mon, 03/02/2009 - 09:54I was running into an issue where some fields weren’t refreshing properly after being set. The fields in question were being loaded a bit differently than other pages, after the page had loaded the fields were filled using javascript. This caused a problem in Safari because it cached the information.
The solution - let ColdFusion tell Safari not to cache the page...