Archive for 2010
iPhone Developer Tips Stats:
|
Voices That Matter iPhone Developers Conference – Enter in the Drawing for a Free 2-Day Pass
I previously announced that Voices That Matter is hosting another iPhone Developer Conference, with this event being held in Seattle, WA. As part of that post, I mentioned that Voices That Matter and iPhone Dev Tips are giving away one free 2-day pass, a pretty good deal as the full admission price is $695.
Originally the [...]
How to Send Email with Attachments – Example Using iPhone Camera to Email a Photo
In this post: Camera Application to Take Pictures and Save Images to Photo Album, I demonstrated how you can take photos with the iPhone camera and save the captured images to the Photo Album. A reader asked if it would be possible to email the camera image in place of writing to the Photo Album, [...]
iPhone Development Mentoring Now Available
A good friend once described the process of learning iPhone development as having a “high-barrier to entry.” It’s not that iPhone development is any more difficult than any other platform, rather, it has to do with the fact that most everything is typically new to developers interested in coding iPhone apps: the programming language (Objective-C), [...]
Save UIImage Object as a PNG or JPEG File
In an earlier post on saving images from the camera to the Photo Album, a question was posed asking how to save the image to another directory other than the Photo Album. Let’s walk through one way to write a UIImage object, from the camera or otherwise, as a PNG or JPG file into the [...]
Validate User Input in UITextField, with Smarts to Properly Manage Copy and Paste
I’ve written a short character validation method that you can use as a starting point for validating characters against a character set. For devices running iPhone OS 3.x and thus support copy/paste, this code will also validate characters pasted into a textfield, and if invalid characters are found in the buffer, the input is [...]
Camera Application to Take Pictures and Save Images to Photo Album
Editor’s Note:If you would like to save the UIImage from the camera to a PNG of JPEG file versus the Photo Album, you can find an example here: Save UIImage Object as a PNG or JPEG File. Also, to email an image from the camera, take a look at this example: How to Send Email [...]
Voices That Matter iPhone Developers Conference – Register to Win a Free Pass!
With the resounding success of the previous Voices That Matter iPhone Developers Conference, once again, Pearson Education and Voices That Matter have put together an impressive list of speakers for their latest event in Seattle, Washington on April 24th and 25th, 2010.
You’ll have a chance to learn from some of the best in the business, [...]
Get Application Icon Name
In a previous post, Get Application Name, I wrote a line of code to get the application name from the app bundle.
The line of code below is a slight modification that shows how to get the name that will appear on the iPhone below the icon:
[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
The CFBundleDisplayName value corresponds to the Bundle [...]
Read and Write Array, Dictionary and Other Collections to Files
With just a few lines of code, you can read/write collections to/from files. The code below shows examples for writing and reading back both arrays and dictionaries.
Read and Write Collections to File
NSArray *array = [NSArray arrayWithObjects:
@"Hefeweizen", @"IPA", @"Pilsner", @"Stout", nil];
NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:
array, @"array", @"Stout", @"dark", @"Hefeweizen", [...]
UIAlertView without Buttons – Please Wait Dialog
If you’ve ever wanted to show a simple “please wait” dialog without resorting to a custom view, UIAlertView is a good option, and is even more appropriate if you customize the alert such that no buttons are shown.
In the figure below you can see how a simple alert can be shown (sans buttons) while you [...]
Sleep, Pause or Block a Thread
If you ever need to briefly pause a thread of execution, there are two class methods in NSThread you can use. Although you have to use these methods judiciously, they can be handy in instances where you need to force a delay in order to achieve some desired effect.
For example, if you want to [...]
Rotate an Image or Button with Animation – Part 2
In a previous post Rotate an Image with Animation – Part 1 I wrote a short code block using CGAffineTransform to rotate an image. Problem is, if you want to rotate an image 360 degrees, or repeat a rotation a specified number of times, you’ll need to take a different approach, which is the focus [...]
Resize/Scale of an Image – Take 2 – Coding a Thread Safe Approach
In the first post on image resizing, How to Resize/Scale an Image using an Objective-C Category, I wrote barebones approach to resizing an image. This works well for simple cases, however this approach is not thread safe as it uses the global current context.
I attended a recent Apple Tech Talk and one of the more [...]
Create Readable Links to Your iPhone Apps and Company in the App Store
Creating a link to your application or company in the App Store serves many purposes, linking from your website, sending a link to a friend or app review website, etc. You can easily create a link to your application by right clicking on the application name or icon in iTunes. For example, referring to Cartoons [...]
Sam Kinison and Scream Scenes iPhone Apps
Mill Creek Entertainment is in the business of providing video home entertainment. Their DVD product line consists of classic movies, television episodes, historical documentaries and feature films.
I’ve been working with Mill Creek to come up with creative ways to leverage their content in digital formats beyond DVD with the iPhone as the first mobile platform.
Scream [...]








