我在我的應用程序中使用UIImagePickerControllerSourceTypeCamera,但要添加的攝像頭查看子視圖。不是模態的觀點。使用相機作爲子視圖
現在,我使用
UIImagePickerController * picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.delegate = self;
[self presentModalViewController:picker animated:YES];
我想用它這樣的,但似乎並沒有工作..
UIImagePickerController * picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypeCamera;
picker.delegate = self;
[picker.view setFrame:CGRectMake(300, 40, 300, 200)];
[self.view addSubview:picker.view];
我知道UIImagePickerControllerSourceTypeCamera只可作爲模態視圖。 使用此例如如何爲例如Hipstamatic?
我假設Hipstamatic使用的是模態UIImagePickerController(不帶控件),但是會覆蓋它自己的自定義視圖。 – 2011-05-06 19:21:31