From af4101b1d8461331bc3163b738fc75d4bf67c85c Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 28 七月 2020 17:47:44 +0800
Subject: [PATCH] 2020-07-28-1
---
Shared.IOS/UI/View.cs | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/Shared.IOS/UI/View.cs b/Shared.IOS/UI/View.cs
index 4d90fe0..3858411 100644
--- a/Shared.IOS/UI/View.cs
+++ b/Shared.IOS/UI/View.cs
@@ -18,9 +18,6 @@
{
~View()
{
-#if DEBUG
- System.Console.WriteLine("=====" + GetType() + " " + Name);
-#endif
if (this is ViewGroup)
{
var viewGroup = this as ViewGroup;
@@ -622,7 +619,7 @@
Parent.Remove(this);
}
-
+ public float AnimateSpeed = 0.6f;
Animate animate = Animate.None;
/// <summary>
@@ -650,7 +647,7 @@
case Animate.DownToUp:
frame.Y += RealView.Frame.Height;
RealView.Frame = frame;
- UIView.AnimateNotify(0.6f, 0.001f, UIViewAnimationOptions.CurveLinear, () =>
+ UIView.AnimateNotify(AnimateSpeed, 0.001f, UIViewAnimationOptions.CurveLinear, () =>
{
RealView.Frame = frameBefore;
}, null);
@@ -658,7 +655,7 @@
case Animate.UpToDown:
frame.Y -= RealView.Frame.Height;
RealView.Frame = frame;
- UIView.AnimateNotify(0.6f, 0.001f, UIViewAnimationOptions.CurveLinear, () =>
+ UIView.AnimateNotify(AnimateSpeed, 0.001f, UIViewAnimationOptions.CurveLinear, () =>
{
RealView.Frame = frameBefore;
}, null);
--
Gitblit v1.8.0