¡@

Home 

2014/10/15 ¤U¤È 10:09:12

iphone Programming Glossary: following

Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?

http://stackoverflow.com/questions/1108693/is-it-possible-to-register-a-httpdomain-based-url-scheme-for-iphone-apps-like

and closes the modal The other option I've played with but found a little clunky was to do the following in Javascript setTimeout function window.location http itunes.com apps yourappname 25 If custom uri..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

UIPickerView a Button in Action sheet How My application requires following things to be added in an action sheet. UIToolbar Button on UIToolbar UIPicker Control I have included..

Detecting which UIButton was pressed in a UITableView

http://stackoverflow.com/questions/1802707/detecting-which-uibutton-was-pressed-in-a-uitableview

an indexPath. What's the standard way of doing this Edit I've kinda solved it by doing the following. I would still like to have an opinion whether this is the standard way of doing it or is there a better.. iphone uitableview uitableviewcell share improve this question In Apple's Accessory sample the following method is used button addTarget self action @selector checkButtonTapped forControlEvents UIControlEventTouchUpInside..

How do I associate file types with an iPhone application?

http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application

or in another supported application. To register support you will need to have something like the following in your Info.plist key CFBundleDocumentTypes key array dict key CFBundleTypeIconFiles key array string.. the system can be made aware of it. To do this you would add a section to your Info.plist like the following key UTExportedTypeDeclarations key array dict key UTTypeConformsTo key array string public.plain text.. in. You can get the URL for this file within the application delegate method using code like the following NSURL url NSURL launchOptions valueForKey UIApplicationLaunchOptionsURLKey Note that this is the same..

How can I send mail from an iPhone application

http://stackoverflow.com/questions/310946/how-can-i-send-mail-from-an-iphone-application

application. I have heard that the iOS SDK doesn't have an email API. I don't want to use the following code because it will exit my application NSString url NSString stringWithString @ mailto foo@example.com..

EXC_BAD_ACCESS signal received

http://stackoverflow.com/questions/327082/exc-bad-access-signal-received

When deploying the application to the device the program will quit after a few cycles with the following error Program received signal EXC_BAD_ACCESS . The program runs without any issue on the iPhone simulator..

How do I apply a perspective transform to a UIView?

http://stackoverflow.com/questions/347721/how-do-i-apply-a-perspective-transform-to-a-uiview

transform then apply your layer rotation transforms to that. You should also be able to do the following UIView myView self subviews objectAtIndex 0 CALayer layer myView.layer CATransform3D rotationAndPerspectiveTransform..

Build fat static library (device + simulator) using Xcode and SDK 4+

http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4

false if DEBUG_THIS_SCRIPT true then echo ########### TESTS ############# echo Use the following variables when debugging this script note that they may change on recursions echo BUILD_DIR BUILD_DIR.. too many bugs in Apple's code If you can't find the output file here's a workaround Add the following code to the very end of the script courtesy of Frederik Wallner open CREATING_UNIVERSAL_DIR Apple deletes..

parsing HTML on the iPhone [closed]

http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

Settings Search for setting Other Linker Flags Add a new search flag lxml2 From hpple get the following source code files an add them to your project TFpple.h TFpple.m TFppleElement.h TFppleElement.m XPathQuery.h..

How do I get a background location update every n minutes in my iOS application?

http://stackoverflow.com/questions/6347503/how-do-i-get-a-background-location-update-every-n-minutes-in-my-ios-application

I'm using iOS 4.3 and the solution should work for non jailbroken iPhones. I tried considered following options CLLocationManager startUpdatingLocation startMonitoringSignificantLocationChanges This works.. Found a solution to implement this with the help of the Apple Developer Forums. I did the following Specify location background mode Use an NSTimer in the background by using UIApplication beginBackgroundTaskWithExpirationHandler..

Understanding reference counting with Cocoa and Objective-C

http://stackoverflow.com/questions/6578/understanding-reference-counting-with-cocoa-and-objective-c

by convention all object creation class methods return an autoreleased object. For example in the following example the variable s has a reference count of 1 but after the event loop completes it will be destroyed... you'd need to call retain explicitly and then explicitly release it when you're done. Consider the following very contrived bit of code and you'll see a situation where autorelease is required NSString createHelloWorldString..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

may cause a leak because its selector is unknown I'm getting the following warning by the ARC compiler performSelector may cause a leak because its selector is unknown . Here's..

How to use NSURLConnection to connect with SSL for an untrusted cert?

http://stackoverflow.com/questions/933331/how-to-use-nsurlconnection-to-connect-with-ssl-for-an-untrusted-cert

to use NSURLConnection to connect with SSL for an untrusted cert I have the following simple code to connect to a SSL webpage NSMutableURLRequest urlRequest NSMutableURLRequest requestWithURL..

Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?

http://stackoverflow.com/questions/1108693/is-it-possible-to-register-a-httpdomain-based-url-scheme-for-iphone-apps-like

the device The Leave me alone button sets the cookie to false and closes the modal The other option I've played with but found a little clunky was to do the following in Javascript setTimeout function window.location http itunes.com apps yourappname 25 If custom uri is registered the app will launch immediately and your timer..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

UIPickerView a Button in Action sheet How My application requires following things to be added in an action sheet. UIToolbar Button on UIToolbar UIPicker Control I have included an image to understand my requirements. Could you please explain..

Detecting which UIButton was pressed in a UITableView

http://stackoverflow.com/questions/1802707/detecting-which-uibutton-was-pressed-in-a-uitableview

sent this message processing button press for this row requires an indexPath. What's the standard way of doing this Edit I've kinda solved it by doing the following. I would still like to have an opinion whether this is the standard way of doing it or is there a better way UITableViewCell tableView UITableView tableView cellForRowAtIndexPath.. instead. It feels very dirty. There must be a better way. iphone uitableview uitableviewcell share improve this question In Apple's Accessory sample the following method is used button addTarget self action @selector checkButtonTapped forControlEvents UIControlEventTouchUpInside Then in touch handler touch coordinate retrieved..

How do I associate file types with an iPhone application?

http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application

the .pdb and .pdb.gz file types if received via email or in another supported application. To register support you will need to have something like the following in your Info.plist key CFBundleDocumentTypes key array dict key CFBundleTypeIconFiles key array string Document molecules 320.png string string Document molecules.. UTI will need to be exported so that other applications on the system can be made aware of it. To do this you would add a section to your Info.plist like the following key UTExportedTypeDeclarations key array dict key UTTypeConformsTo key array string public.plain text string string public.text string array key UTTypeDescription.. a subdirectory corresponding to what email box they arrived in. You can get the URL for this file within the application delegate method using code like the following NSURL url NSURL launchOptions valueForKey UIApplicationLaunchOptionsURLKey Note that this is the same approach we used for handling custom URL schemes. You can..

How can I send mail from an iPhone application

http://stackoverflow.com/questions/310946/how-can-i-send-mail-from-an-iphone-application

an iPhone application I want to send an email from my iPhone application. I have heard that the iOS SDK doesn't have an email API. I don't want to use the following code because it will exit my application NSString url NSString stringWithString @ mailto foo@example.com cc bar@example.com subject Greetings 20from 20Cupertino..

EXC_BAD_ACCESS signal received

http://stackoverflow.com/questions/327082/exc-bad-access-signal-received

signal received When deploying the application to the device the program will quit after a few cycles with the following error Program received signal EXC_BAD_ACCESS . The program runs without any issue on the iPhone simulator it will also debug and run as long as I step through the..

How do I apply a perspective transform to a UIView?

http://stackoverflow.com/questions/347721/how-do-i-apply-a-perspective-transform-to-a-uiview

need to set this value to a negative fraction for your initial transform then apply your layer rotation transforms to that. You should also be able to do the following UIView myView self subviews objectAtIndex 0 CALayer layer myView.layer CATransform3D rotationAndPerspectiveTransform CATransform3DIdentity rotationAndPerspectiveTransform.m34..

Build fat static library (device + simulator) using Xcode and SDK 4+

http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4

helps workaround any future bugs in Xcode ######## # DEBUG_THIS_SCRIPT false if DEBUG_THIS_SCRIPT true then echo ########### TESTS ############# echo Use the following variables when debugging this script note that they may change on recursions echo BUILD_DIR BUILD_DIR echo BUILD_ROOT BUILD_ROOT echo CONFIGURATION_BUILD_DIR CONFIGURATION_BUILD_DIR.. drag dropped project. The workaround dont' embed xcode projects too many bugs in Apple's code If you can't find the output file here's a workaround Add the following code to the very end of the script courtesy of Frederik Wallner open CREATING_UNIVERSAL_DIR Apple deletes all output after 200 lines. Select your Target and in..

parsing HTML on the iPhone [closed]

http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

Add libxml2 library to to your project Menu Project Edit Project Settings Search for setting Other Linker Flags Add a new search flag lxml2 From hpple get the following source code files an add them to your project TFpple.h TFpple.m TFppleElement.h TFppleElement.m XPathQuery.h XPathQuery.m Take a walk on w3school XPath Tutorial..

How do I get a background location update every n minutes in my iOS application?

http://stackoverflow.com/questions/6347503/how-do-i-get-a-background-location-update-every-n-minutes-in-my-ios-application

location update every n minutes in my iOS application. I'm using iOS 4.3 and the solution should work for non jailbroken iPhones. I tried considered following options CLLocationManager startUpdatingLocation startMonitoringSignificantLocationChanges This works in the background as expected based on the configured properties.. c core location background process share improve this question Found a solution to implement this with the help of the Apple Developer Forums. I did the following Specify location background mode Use an NSTimer in the background by using UIApplication beginBackgroundTaskWithExpirationHandler In case n is smaller than UIApplication..

Understanding reference counting with Cocoa and Objective-C

http://stackoverflow.com/questions/6578/understanding-reference-counting-with-cocoa-and-objective-c

fact we shouldn't . What's important to note is that again by convention all object creation class methods return an autoreleased object. For example in the following example the variable s has a reference count of 1 but after the event loop completes it will be destroyed. NSString s NSString stringWithString @ Hello World If.. @ Hello World If you want to hang onto that string you'd need to call retain explicitly and then explicitly release it when you're done. Consider the following very contrived bit of code and you'll see a situation where autorelease is required NSString createHelloWorldString NSString s NSString alloc initWithString @ Hello..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

may cause a leak because its selector is unknown I'm getting the following warning by the ARC compiler performSelector may cause a leak because its selector is unknown . Here's what I'm doing _controller performSelector NSSelectorFromString..

How to use NSURLConnection to connect with SSL for an untrusted cert?

http://stackoverflow.com/questions/933331/how-to-use-nsurlconnection-to-connect-with-ssl-for-an-untrusted-cert

to use NSURLConnection to connect with SSL for an untrusted cert I have the following simple code to connect to a SSL webpage NSMutableURLRequest urlRequest NSMutableURLRequest requestWithURL url NSURLConnection sendSynchronousRequest urlRequest..

Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps?

http://stackoverflow.com/questions/1108693/is-it-possible-to-register-a-httpdomain-based-url-scheme-for-iphone-apps-like

the cookie to false and closes the modal The other option I've played with but found a little clunky was to do the following in Javascript setTimeout function window.location http itunes.com apps yourappname 25 If custom uri is registered the app..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

UIPickerView a Button in Action sheet How My application requires following things to be added in an action sheet. UIToolbar Button on UIToolbar UIPicker Control I have included an image to understand..

Detecting which UIButton was pressed in a UITableView

http://stackoverflow.com/questions/1802707/detecting-which-uibutton-was-pressed-in-a-uitableview

press for this row requires an indexPath. What's the standard way of doing this Edit I've kinda solved it by doing the following. I would still like to have an opinion whether this is the standard way of doing it or is there a better way UITableViewCell.. be a better way. iphone uitableview uitableviewcell share improve this question In Apple's Accessory sample the following method is used button addTarget self action @selector checkButtonTapped forControlEvents UIControlEventTouchUpInside Then..

How do I associate file types with an iPhone application?

http://stackoverflow.com/questions/2774343/how-do-i-associate-file-types-with-an-iphone-application

received via email or in another supported application. To register support you will need to have something like the following in your Info.plist key CFBundleDocumentTypes key array dict key CFBundleTypeIconFiles key array string Document molecules.. applications on the system can be made aware of it. To do this you would add a section to your Info.plist like the following key UTExportedTypeDeclarations key array dict key UTTypeConformsTo key array string public.plain text string string public.text.. box they arrived in. You can get the URL for this file within the application delegate method using code like the following NSURL url NSURL launchOptions valueForKey UIApplicationLaunchOptionsURLKey Note that this is the same approach we used for..

How can I send mail from an iPhone application

http://stackoverflow.com/questions/310946/how-can-i-send-mail-from-an-iphone-application

an email from my iPhone application. I have heard that the iOS SDK doesn't have an email API. I don't want to use the following code because it will exit my application NSString url NSString stringWithString @ mailto foo@example.com cc bar@example.com..

EXC_BAD_ACCESS signal received

http://stackoverflow.com/questions/327082/exc-bad-access-signal-received

signal received When deploying the application to the device the program will quit after a few cycles with the following error Program received signal EXC_BAD_ACCESS . The program runs without any issue on the iPhone simulator it will also debug..

How do I apply a perspective transform to a UIView?

http://stackoverflow.com/questions/347721/how-do-i-apply-a-perspective-transform-to-a-uiview

for your initial transform then apply your layer rotation transforms to that. You should also be able to do the following UIView myView self subviews objectAtIndex 0 CALayer layer myView.layer CATransform3D rotationAndPerspectiveTransform CATransform3DIdentity..

Build fat static library (device + simulator) using Xcode and SDK 4+

http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4

######## # DEBUG_THIS_SCRIPT false if DEBUG_THIS_SCRIPT true then echo ########### TESTS ############# echo Use the following variables when debugging this script note that they may change on recursions echo BUILD_DIR BUILD_DIR echo BUILD_ROOT BUILD_ROOT.. dont' embed xcode projects too many bugs in Apple's code If you can't find the output file here's a workaround Add the following code to the very end of the script courtesy of Frederik Wallner open CREATING_UNIVERSAL_DIR Apple deletes all output after..

parsing HTML on the iPhone [closed]

http://stackoverflow.com/questions/405749/parsing-html-on-the-iphone

Project Edit Project Settings Search for setting Other Linker Flags Add a new search flag lxml2 From hpple get the following source code files an add them to your project TFpple.h TFpple.m TFppleElement.h TFppleElement.m XPathQuery.h XPathQuery.m..

How do I get a background location update every n minutes in my iOS application?

http://stackoverflow.com/questions/6347503/how-do-i-get-a-background-location-update-every-n-minutes-in-my-ios-application

in my iOS application. I'm using iOS 4.3 and the solution should work for non jailbroken iPhones. I tried considered following options CLLocationManager startUpdatingLocation startMonitoringSignificantLocationChanges This works in the background as.. improve this question Found a solution to implement this with the help of the Apple Developer Forums. I did the following Specify location background mode Use an NSTimer in the background by using UIApplication beginBackgroundTaskWithExpirationHandler..

Understanding reference counting with Cocoa and Objective-C

http://stackoverflow.com/questions/6578/understanding-reference-counting-with-cocoa-and-objective-c

note is that again by convention all object creation class methods return an autoreleased object. For example in the following example the variable s has a reference count of 1 but after the event loop completes it will be destroyed. NSString s NSString.. onto that string you'd need to call retain explicitly and then explicitly release it when you're done. Consider the following very contrived bit of code and you'll see a situation where autorelease is required NSString createHelloWorldString NSString..

performSelector may cause a leak because its selector is unknown

http://stackoverflow.com/questions/7017281/performselector-may-cause-a-leak-because-its-selector-is-unknown

may cause a leak because its selector is unknown I'm getting the following warning by the ARC compiler performSelector may cause a leak because its selector is unknown . Here's what I'm doing _controller..

How to use NSURLConnection to connect with SSL for an untrusted cert?

http://stackoverflow.com/questions/933331/how-to-use-nsurlconnection-to-connect-with-ssl-for-an-untrusted-cert

to use NSURLConnection to connect with SSL for an untrusted cert I have the following simple code to connect to a SSL webpage NSMutableURLRequest urlRequest NSMutableURLRequest requestWithURL url NSURLConnection..

NSFetchedResultsController with sections created by first letter of a string

http://stackoverflow.com/questions/1112521/nsfetchedresultscontroller-with-sections-created-by-first-letter-of-a-string

managedObjectContext managedObjectContext sectionNameKeyPath @ committeeNameInitial cacheName @ Root PREVIOUSLY Following Dave's initial steps to the letter generated issues where it dies upon setPropertiesToFetch with an invalid argument exception...

iPhone- Twitter API GET Users Followers/Following

http://stackoverflow.com/questions/11600621/iphone-twitter-api-get-users-followers-following

Twitter API GET Users Followers Following I want to be able to use the Twitter API for ios 5 to get all of the user followers and following user name into a NSDictionary..

Reading binary image data from a web service into UIImage

http://stackoverflow.com/questions/2360986/reading-binary-image-data-from-a-web-service-into-uiimage

but not this image data field Thanks in advance.. iphone web services binary data share improve this question Following fbrereto's answer I managed to convert the string into NSData using a code sample at this link http www.cocoadev.com index.pl..

IPhone SDK - Leaking Memory with performSelectorInBackground

http://stackoverflow.com/questions/2441856/iphone-sdk-leaking-memory-with-performselectorinbackground

separate thread you should create and dispose NSAutoreleasePool object for that thread to handle autoreleased objects. Following changes to getController method should do the trick void getController NSAutoreleasedPool pool NSAutoreleasedPool alloc..

Why is NSUserDefaults not saving my values?

http://stackoverflow.com/questions/2622754/why-is-nsuserdefaults-not-saving-my-values

need the values in app delegate when the application is restarted. But i am not getting anything in the nsuserdefault. Following is my code from my class where i save the values in nsuserdefault NSUserDefaults prefs NSUserDefaults standardUserDefaults.. standardUserDefaults prefs setObject appDel.dictProfile forKey @ dict NSLog @ @ prefs valueForKey @ dict Following is my code from App Delegagte NSUserDefaults prefs NSUserDefaults standardUserDefaults NSLog @ @ prefs valueForKey @ dict..

Compress/Decompress NSString in objective-c (iphone) using GZIP or deflate

http://stackoverflow.com/questions/3015904/compress-decompress-nsstring-in-objective-c-iphone-using-gzip-or-deflate

I'll see if this leads me anywhere Edit 2 Unfortunately the method described in Edit 1 didn't lead me anywhere. Edit 3 Following the advice below regarding base64 encoding decoding I came up with the following code. The encodedGzippedString is as you..

How to get UIKeyboard size with Apple iPhone SDK

http://stackoverflow.com/questions/3546571/how-to-get-uikeyboard-size-with-apple-iphone-sdk

iPhone SDK Is there some way to get UIKeyboard size programatically. 216.0f height and 162.0f height in landscape. Following seem to be depricated. Is there some way that works without any warning in both 3.0 iPhone OS SDK and 4.0 iPhone OS SDK..

How to get audio volume level, and volume changed notifications on iOS 4?

http://stackoverflow.com/questions/3651252/how-to-get-audio-volume-level-and-volume-changed-notifications-on-ios-4

neither errors nor warnings. Static analyzer is happy as well. Here is what I've tried so far all without any success. Following Apple's audio services documentation I should register an AudioSessionAddPropertyListener for kAudioSessionProperty_CurrentHardwareOutputVolume..

Editing a UITextField inside a UITableViewCell fails

http://stackoverflow.com/questions/376372/editing-a-uitextfield-inside-a-uitableviewcell-fails

I thought I'd throw this out to the SO crowd for a second opinion and to see if there are any workarounds. Any ideas Following benzado's suggestion I tried building my application using the 2.0 2.1 and 2.2 SDKs. I got the same behaviour in all versions...

UITextView in a UITableViewCell smooth auto-resize shows and hides keyboard on iPad, but works on iPhone

http://stackoverflow.com/questions/4015557/uitextview-in-a-uitableviewcell-smooth-auto-resize-shows-and-hides-keyboard-on-i

show and hide the keyboard but unfortunately then the UITableViewCell doesn't grow to the proper height. UPDATE Following these instructions I am now able to stop the strange movement of the text but the keyboard is still hiding and showing which..

Is it possible for a UIWebView to save and autofill previously entered form values (e.g., username & password)?

http://stackoverflow.com/questions/4772341/is-it-possible-for-a-uiwebview-to-save-and-autofill-previously-entered-form-valu

the same functionality in the UIWebView but for the life of me I can't figure out how to do it. Any ideas UPDATE Following Michael's basic model see accepted answer I was able to get this done. Here's what I did SETTING DATA BOOL webView UIWebView..

iPhone Development - Simulate Memory Warning

http://stackoverflow.com/questions/491075/iphone-development-simulate-memory-warning

is commented out. So when a view controller receives a memory warning message these are the steps that are carried out Following method is called void didReceiveMemoryWarning super didReceiveMemoryWarning As a result of call to super didReceiveMemoryWarning..

How to run and debug unit tests for an iPhone application

http://stackoverflow.com/questions/4989668/how-to-run-and-debug-unit-tests-for-an-iphone-application

will call those tests. The article by Sean Miceli on the Grokking Cocoa blog provides all the information to do this. Following it however did not yield immediate success and needed some tweaking. I will go over the main steps presented in Sean's tutorial..

how to implement application tests in xcode4?

http://stackoverflow.com/questions/5637272/how-to-implement-application-tests-in-xcode4

to implement application tests in xcode4 I'm trying to add some Tests for my application. Following the Document from Apple I add two testing bundles to my project. The logic tests are no problem but when I try to make the..

Horizontal UIScrollView and hundreds of thumbnail images in iOS?

http://stackoverflow.com/questions/5973883/horizontal-uiscrollview-and-hundreds-of-thumbnail-images-in-ios

follow link to explore more on this. If you need further help please leave a comment. Hope it helps. Please consider Following example. void setupHorizontalScrollView scrollView.delegate self self.scrollView setBackgroundColor UIColor blackColor scrollView..

Add image to UIBarButtonItem button

http://stackoverflow.com/questions/6817469/add-image-to-uibarbuttonitem-button

self.navigationItem.rightBarButtonItem UIBarButtonItem alloc initWithCustomView button autorelease Following code still doesn't work Don't know what's going on. MPMoviePlayerViewController videoController MPMoviePlayerViewController..

How to get contacts detail of iphone and make CSV file of that contact

http://stackoverflow.com/questions/7118772/how-to-get-contacts-detail-of-iphone-and-make-csv-file-of-that-contact

iPhone. I want to fetch iPhone address book data. iphone csv import contacts share improve this question Following is the code to get all informations of iPhone contact book... void collectContacts NSMutableDictionary myAddressBook NSMutableDictionary..

Keyboard Scroll on Active Text Field - Scrolling to Out of View?

http://stackoverflow.com/questions/7193787/keyboard-scroll-on-active-text-field-scrolling-to-out-of-view

to scroll when editing the bottom fields so that the fields would be visible but it's not seeming to work correctly. Following the Apple docs I placed all of that code into my program Listings 4 1 4 2 and added the scrollView and activeField outlets..

How to save recorded video into photo album?

http://stackoverflow.com/questions/9991332/how-to-save-recorded-video-into-photo-album

to save recorded video into photo album Following code is to save image took from camera into photo album. if mediaType isEqualToString NSString kUTTypeImage image info..