开发者

Access Camera in Same View

When we use UIImagePickerController to get camera action we need to open it in different viewController like as:

UIImagePickerController *imagepicker;
[self presentModalViewController:imagepicker animated:YES];

but I want to use this in same View controller from where this UIImagePickerController is called in di开发者_开发知识库fferent View.

Is it possible?


Try creating a view where you want the image picker to appear say destView. Create the image picker and then use [destView addSubview: imagepicker.view] You may need to play with size of destView to get things right.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜