iOS 4 在自己的代码中使用 AVCam 演示
我是 iO 开发新手,想知道是否有人已经将 AVCam 演示集成到他们自己的项目中? 我想将它与我当前的项目集成,并在用户点击特定按钮时弹出 AVCamView。我该怎么做? 任何代码片段将不胜感激!
问候, 拉尔斯
I'm new to iOs development and wondered if anybody has taken the AVCam demo and integrated into their own project?
I would like to integrate it with my current project and pop up the AVCamView when the user hits a particular button. How do I do that?
Any code snippets would be very appreciated!!!
Regards,
Lars
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将文件复制到您的项目中(不包括 appDelegate 文件)
AVCamDemoViewController *camViewController = [[AVCamViewController alloc] init];
[self.navigationController PushViewController:cameViewController动画:是]
我自己还没有尝试过,但这应该可行。确保 #import 文件。
Copy the files into your project (exclude the appDelegate file)
AVCamDemoViewController *camViewController = [[AVCamViewController alloc] init];
[self.navigationController pushViewController:cameViewController animated:YES]
I haven't tried it myself, but that should work. Make sure you #import the files.