封装了一个UILabel并让它显示圆形的边框,UILabel上面显示百份比,而边框则用Animation绘制到整个圆占指定百分比的点. 这只是我个人想的继承一个UILabel实现的,用到两个CAShapeLayer,第一个Layer的作用是画出灰色的背影圆圈,第二个Layer位置放置在第一个Layer的上面,并设置为红色描绘颜色并描绘到插定的位置,之后实现相应的动画效果即可. import UIKit class kCircleLabel: UILabel { var percent:Doubl
using UnityEngine; using System.Collections; using UnityEngine.EventSystems; //using UnityEngine.SceneManagement; using System; using UnityEngine.UI; using System.Runtime.InteropServices; public class DrawWindow : MonoBehaviour { //private GameOb