I wrote the below code for "Use Photo" button of the camera
When i click the "Use Photo" button the capture image is stored in "Photos",
It shows the Testupload screen.It contains two buttons
The buttons are not activated in the test upload screen?
Can anyone tell me the solution?
Code:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img editingInfo:(NSDictionary *)editInfo {
UIImageWriteToSavedPhotosAlbum(img, nil, nil, nil);
[[picker parentViewController] dismissModalViewControllerAnimated:YES];
//To show the TestUpload view
Testupload *vController = [[ Testupload alloc]
initWithNibName:@"Testupload" bundle:[NSBundle mainBundle]];
//set the view.
self.testupload = vController;
//release the view controller.
[vController release];
//Add the view as a sub view to the window.
//Here we are asking the view controller to get its view and add it as a subview to the window.
[self.view.window addSubview:[testupload view]];
// Override point for customization after app launch
[window makeKeyAndVisible];
}
When i click the "Use Photo" button the capture image is stored in "Photos",
It shows the Testupload screen.It contains two buttons
The buttons are not activated in the test upload screen?
Can anyone tell me the solution?