萤石云 iOSSDK,移植跨平台相关工程
JLChen
2021-01-29 2b77dde1f45abb7ef820ce91e9aedaabe8f7e20b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// This file has been autogenerated from a class added in the UI designer.
 
using System;
 
using Foundation;
using UIKit;
 
namespace ezxamairn.iOS.ViewControllers
{
    public partial class EZViewController : UIViewController
    {
        public EZViewController(IntPtr handle) : base(handle)
        {
        }
 
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
 
            
 
            //UIButton
            UIButton button = new UIButton();
            button.Frame = new CoreGraphics.CGRect((View.Frame.Width - 100) / 2,   100, 200, 40);
            button.BackgroundColor = UIColor.LightGray;
            button.SetTitle("打开设备列表",UIControlState.Normal);
            View.AddSubview(button);
 
            button.TouchUpInside += (sender, e) =>
            {
                EZSDK.IOS.EZSDK.Go2EZvizMonitor();
            };
 
 
        }
    }
}