void ReleaseDesignerOutlets() { if (Camera != null) { Camera.Dispose(); Camera = null; } if (LocationAlways != null) { LocationAlways.Dispose(); LocationAlways = null; } if (LocationInUse != null) { LocationInUse.Dispose(); LocationInUse = null; } if (Photos != null) { Photos.Dispose(); Photos = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); Photos.SetCommand(ViewModel.Photos.RequestPermissionCommand); Camera.SetCommand(ViewModel.Camera.RequestPermissionCommand); LocationInUse.SetCommand(ViewModel.LocationInUse.RequestPermissionCommand); LocationAlways.SetCommand(ViewModel.LocationAlways.RequestPermissionCommand); }