1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| using System;
| using Shared;
| #if __IOS__
| using UIKit;
| #endif
|
| namespace HDL_ON.UI
| {
| /// <summary>
| /// TextButton
| /// 解决iOS 文本到边框有边距问题
| /// </summary>
| public class TextButton : Button
| {
| public TextButton()
| {
| #if __IOS__
| //重写修改文本到边框的内边距为0
| (this.uiView as MyButton).ContentEdgeInsets = new UIEdgeInsets(0, 0, 0, 0);
| #endif
|
| }
| }
| }
|
|