Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hai Guy,

I am basically a java developer,now i am developing an application for Ipad.For that i installed Mac OX x lion in VMWare in my system.Everything work fine.Then i installa XCode 4.1 and started to test a sample program everything fine.Now i want to access the camera and take the picture and save it.When i try to run the code for this simulator started to run but when i press the camera button its exiting from the application by giving SIGAbrt error when it is trying to detect the cam.I had connected the a Qlogic web cam to the system.Its working fine in Mac

C#
if ([UIImagePickerController
        isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])
    {
        [UIImagePickerControllerisSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera];
        UIImagePickerController *imagePicker =
        [[UIImagePickerControlleralloc] init];
        imagePicker.delegate = self;
        imagePicker.sourceType =
        UIImagePickerControllerSourceTypeCamera;
        imagePicker.mediaTypes = [NSArray arrayWithObjects:
                                  (NSString *) kUTTypeImage,
                                  nil];
        imagePicker.allowsEditing = NO;
        [selfpresentModalViewController:imagePicker
                                animated:YES];
        newMedia = YES;
    }





Can any one help me to resolve this
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900