         self.init()
         
         self.segmentTitles = titles
+        self.setup()
+    }
+    
+    /**
+     Init with coder
+     */
+    required public init?(coder aDecoder: NSCoder)
+    {
+        super.init(coder: aDecoder)
+        
         self.setup()
     }
     

    // ---------------------------------------------------------------------------
    
    /**
     Init with segment titles
     */
    convenience init (withSegmentTitles titles : Array<String>)


import UIKit

@objc public protocol TABSegmentedControlDelegate
{
    func segmentedControl (_ segmentedControl : TABSegmentedControl , didSelectSegmentAtIndex index : Int)
}
