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 »
Tag Archives: Programming
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 »
Objective C Programming Tutorial – 47 – Enum Program
thenewboston.com Ask me all questions there as well as view source code for the tutorial Video Rating: 4 / 5
Objective C Programming Tutorial – 5 – Implementation
Thanks for watching and don’t forget to subscribe! Video Rating: 4 / 5
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 »
Objective-C Programming: The Big Nerd Ranch Guide (Big Nerd Ranch Guides)
Objective-C Programming: The Big Nerd Ranch Guide (Big Nerd Ranch Guides) Want to write applications for iOS or the Mac? This introduction to programming and the Objective-C language is the first step on your journey from someone who uses apps to someone who writes them. Based on Big Nerd Ranch’s legendary Objective-C Bootcamp,¿this book covers Read more »
iPhone Programming- Xcode 4: Advanced Code Snippets.
A quick tutorial teaching you how to use Code Snippets to their maximum including custom parameters and detailed explanations. Main code used: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@”Title” message:@”Message” delegate:self cancelButtonTitle:@”Cancel” otherButtonTitles:@”Other”, nil]; [alert show]; [alert release]; Twitter: twitter.com Apple Developer Center: developer.apple.com Website: failcake.webs.com Channel: youtube.com
iPhone Programming – Making a Google Search bar
Antoher tutorial in my UIWebview Playlist. In this tutorial you will learn how to make a search bar search Google rather than load a website. It can be really usefull. Main Code Used: -(IBAction)Googlesearch:(id)sender { NSString *query = [googleBar.text stringByReplacingOccurrencesOfString:@" " withString:@"+"]; NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"www.google.co.uk query]]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [webView Read more »


