using System; using Shared; #if __IOS__ using UIKit; #endif namespace HDL_ON.UI { /// /// TextButton /// 解决iOS 文本到边框有边距问题 /// public class TextButton : Button { public TextButton() { #if __IOS__ //重写修改文本到边框的内边距为0 (this.uiView as MyButton).ContentEdgeInsets = new UIEdgeInsets(0, 0, 0, 0); #endif } } }