如何设置行选择数量的水龙头

时间:2014-08-29 14:08:42

标签: c# ios xamarin.ios xamarin touch-event

public override void RowSelected (UITableView tableView, NSIndexPath indexPath)
        {
            CBCharacteristic characteristic = this._characteristics [indexPath.Row];
            this.CharacteristicSelected (this, new CharacteristicSelectedEventArgs (characteristic));


            NSSet touches = new NSSet();
            UITouch touch = touches.AnyObject as UITouch;


                if (touch != null) {
                    if (touch.TapCount == 1) {

                        Console.WriteLine("1");
                        }


                    }

                    if (touch.TapCount == 2) {
                    Console.WriteLine("2");
                }


            tableView.DeselectRow (indexPath, true);

        }

出了什么问题?

点击代码无效......

如果我删除或没有应用程序不计算水龙头!

我点击1次,输出中没有显示,如果我点击2相同...

0 个答案:

没有答案