I have successfully fetched an image from photo library and I have set it on the button but now I want to send this image in another view then how can I send this image using NSUserDefault
plz provide code if you have.
thanx in advance…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
We can pass this image object while pushing from one view to another….Consider “imageToPass” be your UIImage object.Use this code in the FirstViewController.m, button action:
In “NextViewController.m” use the below code:
or you can take directly from NSUserDefault from the NextViewController also.