Posts

Showing posts from May, 2012

How to play audio and video in iPhone ? and Wanna Play Multiple videos simultaneously. ???

MPMoviePlayerController  plays only one video at a time. But, you can play multiple video simultaneously using  AVPlayer T utorial link for playing multiple video simultaneously -  Play video simultaneously Download   MPMoviePlayerController  code . Code for .h file. #import #import #import @interface MultiMediaViewController : UIViewController { MPMoviePlayerViewController * player ; AVAudioPlayer * audioPlayer ; } - ( IBAction ) btnPlayVideo_Clicked :( id ) sender ; - ( IBAction ) btnPlayAudio_Clicked :( id ) sender ; - ( IBAction ) btnPlayBackgroundAudio_Clicked :( id ) sender ; - ( IBAction ) btnStopAudio_Clicked :( id ) sender ; @end 2. Code for .m file. #import "MultiMediaViewController.h" @implementation MultiMediaViewController - ( void ) viewDidLoad { [ super viewDidLoad ]; } - ( IBAction ) btnPlayVideo_Clicked :( id ) sender { NSString * path = [[ NSBundle mainBundle ] pathForResource

How to get Screen Shot on button click

CODE 1 import "QuartzCore.framework" // .h file -(IBAction)captureScreen:( id )sender; // .m file #import <QuartzCore/QuartzCore.h> - ( IBAction ) captureScreen : ( id ) sender { UIGraphicsBeginImageContext ( self . view . window . frame . size ); [ self.view.layer renderInContext : UIGraphicsGetCurrentContext ( ) ] ; UIImage * viewImage = UIGraphicsGetImageFromCurrentImageContext ( ) ; UIGraphicsEndImageContext ( ) ; UIImageWriteToSavedPhotosAlbum ( viewImage, nil , nil , nil ) ; } //Code 2 CGImageRef UIGetScreenImage( void ); CGImageRef originalImage = UIGetScreenImage (); CGImageRef videoImage = CGImageCreateWithImageInRect (originalImage, CGRectMake ( 0 , 66 , 320 , 230 )); UIImage *snapShotImage = [ UIImage imageWithCGImage :videoImage]; UIImageWriteToSavedPhotosAlbum (snapShotImage, nil , nil , nil ); CGImageRelease (originalImage);                 CGImageRelease (videoImage); 

important links

Learn In Best way  http://www.tutorialspoint.com/ http://ios.eezytutorials.com/ Objective C http://www.tutorialspoint.com/ios/index.htm http://www.otierney.net/objective-c.html#inheritance http://rypress.com/tutorials/objective-c/properties.html http://oleb.net/blog/ http://oleb.net/blog/2012/02/app-launch-sequence-ios-revisited/ iPhone SDK:Connect to Twitter with OAuth http://mobile.tutsplus.com/tutorials/iphone/twitter-api-iphone/ Download best sample code http://code4app.net/ http://www.appcoda.com/ios-programming-course/ http://www.scoop.it/t/ios-tutorials http://stackoverflow.com/questions/1353130/where-can-i-find-sample-iphone-code http://maniacdev.com/2010/06/35-open-source-iphone-app-store-apps-updated-with-10-new-apps/ http://www.theiphonedev.com/SourceCode/tabid/143/Default.aspx http://www.appsamuck.com/ http://www.supersuraccoon-cocos2d.com/2011/09/17/sticky-demo-resource-list-keep-updating/ Play song from iphone library http://