萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> ios >> ios開發調用攝像頭代碼

ios開發調用攝像頭代碼

   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];

copyright © 萬盛學電腦網 all rights reserved