     
     // MARK: Init
     
-    init (frame: CGRect, titles: [String], action: YSSegmentedControlAction? = nil) {
+    public init (frame: CGRect, titles: [String], action: YSSegmentedControlAction? = nil) {
         super.init (frame: frame)
         self.action = action
         self.titles = titles
         defaultAppearance()
     }
-
+    
     required public init? (coder aDecoder: NSCoder) {
         super.init (coder: aDecoder)
     }

        appearance: YSSegmentedControlAppearance,
        willPress: YSSegmentedControlItemAction?,
        didPressed: YSSegmentedControlItemAction?) {
        super.init(frame: frame)
        self.willPress = willPress
        self.didPressed = didPressed
        label = UILabel(frame: CGRect(x: 0, y: 0, width: frame.size.width, height: frame.size.height))
        label.textColor = appearance.textColor
        label.font = appearance.font
        label.textAlignment = .Center
        label.text = text
        addSubview(label)
    }
    
    required init?(coder aDecoder: NSCoder) {

class YSSegmentedControlItem: UIControl {
    
    // MARK: Properties
    
    private var willPress: YSSegmentedControlItemAction?
    private var didPressed: YSSegmentedControlItemAction?
    var label: UILabel!
