Exemplo n.º 1
0
		public override void TouchesBegan(NSSet touches, UIEvent evt)
		{
			var touch = touches.AnyObject as UITouch;
			var location = touch.LocationInView (this.View);
			if (_frame.Contains(location))
			{
				// Piece tapped			
				var old = _pdvc;
				_pdvc = new PieceDetailViewController(_piece, _parent);
				_parent.NavigationController.PresentSemiModalViewController(_pdvc);
				if(old != null)
				{
					old.Dispose();
				}
			}
			base.TouchesBegan(touches, evt);
		}
Exemplo n.º 2
0
        public override void TouchesBegan(NSSet touches, UIEvent evt)
        {
            var touch    = touches.AnyObject as UITouch;
            var location = touch.LocationInView(this.View);

            if (_frame.Contains(location))
            {
                // Piece tapped
                var old = _pdvc;
                _pdvc = new PieceDetailViewController(_piece, _parent);
                _parent.NavigationController.PresentSemiModalViewController(_pdvc);
                if (old != null)
                {
                    old.Dispose();
                }
            }
            base.TouchesBegan(touches, evt);
        }