getting SIGABRT for UIImagePickerControllerSourceTypeCamera
<p>I'm trying to make a very simple iphone app that displays the real-time camera view of the device, and have added following codes that I found thru researching.</p>

<pre><code>    -(void)viewDidLoad{
UIImagePickerController *imagePicker =
[[UIImagePickerController alloc] init];

imagePicker.delegate = self;

imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera;

imagePicker.allowsEditing = YES;

[self presentModalViewController:imagePicker animated:YES];

[imagePicker release];
</code></pre>

<p>}</p>

<p>This only causes SIGABRT error, which I have no clue as to what to do with.</p>

<p>Since the above codes seem like a must to implement camera view, are there additional things that I have missed? Didn't think simply loading camera view would stress me...
Please help me out. </p>

<p>ps.I'm using xcode 4 btw.</p>
