1.attach an anonymous delegate: [csharp] testButton1.TouchUpInside += delegate { new UIAlertView("Touch1", "TouchUpInside handled", null, "OK", null).Show(); }; 2.use a lambda expression: [csharp] testButton2.TouchUpInside += (sender, ea) => { new UIAlertView("Touch2", "TouchUpInside handled", null, "OK", null).Show(); }; 取消事件是“-=” 3.assign a delegate method: [csharp] testButton3.TouchUpInside += HandleTouchUpInside; [csharp] private void HandleTouchUpInside(object sender, System.EventArgs e) { //... } 4.AddTarget方式: [csharp] btnForgetPwd.AddTarget (this, new MonoTouch.ObjCRuntime.Selector ("LoginSelector"), UIControlEvent.TouchUpInside); [Export("LoginSelector")] void OpenPlatform() { //... } 最後一個方法揭示我們可動態創建,這來說的動態創建是指配置的意思,試想一下,如果拋開移動端,我們在pc端做一些配置,勾勾選選就能構建一個xml,然後去解析這個xml,對於button的事件,預先處理好一個類庫,然後用AddTarget動態綁定即可,很便捷的哦