In this tutorial I teach you how to load a number of files into your application. These include PDFs, Spreadsheets and Powerpoints. Main Code: NSString *filePath = [[NSBundle mainBundle] pathForResource:@”Test_PDF” ofType:@”pdf”]; url = [NSURL fileURLWithPath:filePath]; [webView loadRequest:[NSURLRequest requestWithURL:url]]; For a UITableView: In RootViewController: -(void) makeData { sections = [[NSMutableArray alloc] init]; pdfs = [[NSMutableArray alloc] Read more »
Category Archives: iPhone Programming
iPhone 4 Case Program
iPhone 4 Case Program Image by makipapa
iPhone Programming – UIImageView Collison
A tutorial teaching you how to detect image collision and do something about it. Useful for Game Apps. Main Code Used: -(void)ifCollided { if (CGRectIntersectsRect(image.frame, collisionImage.frame)) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@”Collided” message:@”You have collided with another image” delegate:self cancelButtonTitle:@”Reset” otherButtonTitles:@”Ok” ,nil]; [alert show]; [alert release]; } } -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)index { if (index Read more »
Learning iPhone Programming: From Xcode to App Store
Learning iPhone Programming: From Xcode to App Store Get the hands-on experience you need to program for the iPhone and iPod Touch. With this easy-to-follow guide, you’ll build several sample applications by learning how to use Xcode tools, the Objective-C programming language, and the core frameworks. Before you know it, you’ll not only have the Read more »
My iPhone apps as of February 2010
My iPhone apps as of February 2010 Image by dougbelshaw A montage of iPhone apps I currently use, with notes and links!
[45/365] Installing iPhone 3.0 Beta
[45/365] Installing iPhone 3.0 Beta Image by Ben Dodson Today was the big announcement of the iPhone 3.0 Software Update and what an announcement it turned out to be! A small selection of the updates that are available is as follows: * UPDATED: Support for Internet Tethering (see my photo / installation instructions) * Copy Read more »
iphone
iphone Image by rustybrick What Websites and Programs Do I Use to Get Things Done….
iPhone Programming – Making Sounds and Vibrations (Method 1)
A Tutorial on The AudioToolkit framework. Teaching you how to play a sound and make a vibration. Main Code: -(IBAction)playSound:(id)sender { SystemSoundID soundID; NSString *soundFile = [[NSBundle mainBundle] pathForResource:@”YOUR SOUND NAME” ofType:@”YOUR SOUND FILE EXTENSION”]; AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:soundFile], &soundID); AudioServicesPlaySystemSound(soundID); AudioServicesPlaySystemSound (kSystemSoundID_Vibrate); } New Type Of Tutorials: www.youtube.com Next Video: www.youtube.com Freesound: www.freesound.org SoundsXtras: www.soundsxtras.com SoundSnap: Read more »
iPhone Programming: Reading Plain Text Files into your app.
A tutorial teaching you how to read text form an external plain text file and put it into a UITextView IMPORTANT: IT MUST BE A PLAIN .TXT FILE. If your textEdit will not allow you to save as .txt and says it must be a .rtf or .txt.rtf go to this link to change your Read more »
iPhone 4 Case Program
iPhone 4 Case Program Image by infilmity


