         
 //        self.button.setTitle(self.text, forState: UIControlState.Normal)
         self.keyView.text = (self.text ? self.text : "")
+    }
+    
+    override func drawRect(rect: CGRect) {
+//        super.drawRect(rect)
     }
     
     func showPopup() {

            // draw the border //
            /////////////////////
            
            let shadowOffset = 1.0
            let cornerRadius = 3.0
            
            let segmentWidth: CGFloat = self.bounds.width
            let segmentHeight: CGFloat = self.bounds.height - CGFloat(shadowOffset)
            
            var path = CGPathCreateMutable();
            
//            CGPathMoveToPoint(path, nil, 0, CGFloat(shadowOffset) + segmentHeight)
            
            // order of edge drawing: left edge, down edge, right edge, up edge
            
            // base, untranslated corner points
            let startingPoints = [
                CGPointMake(0, segmentHeight),
                CGPointMake(0, 0),
                CGPointMake(segmentWidth, 0),

                self.keyView._attached = Direction.Right
            }
            else if self.keyView._attached! == Direction.Right {
                self.keyView._attached = Direction.Up
            }
        }
    }
