in Education by
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 7 years ago. Improve this question How could i build an application that first in a blank UIView, then allow users to take a picture using camera, the picture will then appear on the UiView which users can drag and move the image around. Here is my code that i have so far, -(IBAction) getPhoto:(id) sender { UIImagePickerController * picker = [[UIImagePickerController alloc] init]; picker.delegate = self; if((UIButton *) sender == choosePhotoBtn) { picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum; } else { picker.sourceType = UIImagePickerControllerSourceTypeCamera; savebutton.hidden=NO; } [self presentModalViewController:picker animated:YES]; } - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { [picker dismissModalViewControllerAnimated:YES]; imageView.image = [info objectForKey:@"UIImagePickerControllerOriginalImage"]; } -(void)imageSavedToPhotosAlbum:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo { NSString *message; NSString *title; if (!error) { title = NSLocalizedString(@"Image Saved Successfully!", @""); message = NSLocalizedString(@"Tap Library and select this image.", @""); } else { title = NSLocalizedString(@"SaveFailedTitle", @""); message = [error description]; } UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:message delegate:nil cancelButtonTitle:NSLocalizedString(@"OK", @"") otherButtonTitles:nil]; [alert show]; [alert release]; [message release]; [title release];} -(IBAction) saveImage:(id)sender{ UIImage *img = imageView.image; UIImageWriteToSavedPhotosAlbum(img, self, @selector(imageSavedToPhotosAlbum: didFinishSavingWithError: contextInfo:), nil); } Also is there any good tutorial on photo modification in Xcode? Many Thanks. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Take the help of uitouchmoved class and using the same you can move around the image in the uiview easily.See this.

Related questions

0 votes
    Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 7, 2022 in Education by JackTerrance
0 votes
    I have user control named DateTimeUC which has two textboxes on its markup: I am dynamically creating this ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 13, 2022 in Education by JackTerrance
0 votes
    I have user control named DateTimeUC which has two textboxes on its markup: I am dynamically creating this ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 13, 2022 in Education by JackTerrance
0 votes
    I have user control named DateTimeUC which has two textboxes on its markup: I am dynamically creating this ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 13, 2022 in Education by JackTerrance
0 votes
    As it currently stands, this question is not a good fit for our Q&A format. We expect answers to ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    I am writing an API for an iOS app where the user's login with the Facebook API on iOS. The server ... achieve this kinda setup? Select the correct answer from above options...
asked Feb 3, 2022 in Education by JackTerrance
0 votes
    I am writing my first iOS application (iPhone only) with Swift. The main application view should allow user ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 29, 2022 in Education by JackTerrance
0 votes
    Would you recommend that users go through the guest user request process to allow them to share a file from SharePoint with an external person?...
asked Mar 10, 2021 in Technology by JackTerrance
0 votes
    I'm pretty new to the iPhone platform, so I'm wondering what the best way to switch between ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    Based on solute - solvent interactions, arrange the following in order of increasing solubility in n- octane and ... CHM3OH,CHM3CN . Select the correct answer from above options...
asked Jan 5, 2022 in Education by JackTerrance
0 votes
    I wanna transform a grayscaled iplimage into uiimage and viceversa. I have two methods like below that are ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 26, 2022 in Education by JackTerrance
0 votes
    NLP is concerned with the interactions between computers and human (natural) languages. (a) True (b) False ... Acting of Artificial Intelligence Please answer the above question....
asked Oct 22, 2022 in Education by JackTerrance
0 votes
    NLP is concerned with the interactions between computers and human (natural) languages. (a) True (b) False ... Acting of Artificial Intelligence Please answer the above question....
asked Oct 2, 2022 in Education by JackTerrance
0 votes
    How do interactions take place between biotic and abiotic factors of an ecosystem? Select the correct ... proposed by,electromagnetic theory engineering physics,Science nptel...
asked Nov 7, 2021 in Education by JackTerrance
0 votes
    Interactions between producers, consumers and saprophytes in a definite sequence is called (a) Links (b ... proposed by,electromagnetic theory engineering physics,Science nptel...
asked Nov 7, 2021 in Education by JackTerrance
...