开发者

Access Camera in Same View

开发者 https://www.devze.com 2023-03-28 12:20 出处:网络
When we use UIImagePickerController to get camera actionwe need to open it in different viewController like as:

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

精彩评论

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

关注公众号