您现在的位置: 万盛学电脑网 >> 程序编程 >> 网络编程 >> ios >> 正文

ios开发调用摄像头代码

作者:佚名    责任编辑:admin    更新时间:2022-06-22

   UIActionSheet *actionSheet=[[UIActionSheet alloc] initWithTitle:@"" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Take Photo",@"Choose From Library",nil];

  actionSheet.actionSheetStyle=self.navigationController.navigationBar.barStyle;

  [actionSheet showInView:self.view.superView]

  [actionSheet release];