Forum Xamarin.iOS

How to Open Camera in Xamarin iOS

MohanasundharamMohanasundharam Member ✭✭✭
edited May 2019 in Xamarin.iOS

I need to Open Camera by using Xamarin iOS when Button Click and Bind the Captured Image in ImageView and also store in Memory, Is there any simple methods to resolve this?

Best Answer

Answers

  • SebastianSeidel.9226SebastianSeidel.9226 DEInsider, University ✭✭✭✭

    The easiest way to go would be the UIImagePickerController with a source set to camera. It provides events to handle the result and process it further.

  • MohanasundharamMohanasundharam Member ✭✭✭
    edited May 2019

    how to manage dic? (because dic is not in Current Context)

  • LucasZhangLucasZhang Member, Xamarin Team Xamurai

    dic is a NSDictionary that contains in Foundation.

    using System;
    using System.Drawing;
    using ObjCRuntime;
    using CoreFoundation;
    using UIKit;
    using Foundation;
    using CoreGraphics;
    
  • DhanuPremDhanuPrem Member ✭✭

    @LucasZhang I'm new to xamarin and I followed your answer to develop a camera app using xamarin ios. So the problem is the picker is not shown on screen. I have added all permissions as well.

Sign In or Register to comment.