Archive for February, 2010
iOS Developer Tips - Visitor Stats:
|
|
|
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 [...]
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 [...]
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", @"wheat", [...]
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 [...]
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 [...]






