     }
     
     func pickerView(pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
-        return 0
+        switch pickerView {
+        case self.categoryPickerView:
+            return self.data.count
+        case self.subCategoryPickerView:
+            return self.subCatData.count
+        default:
+            return 0
+        }
     }
     
     func pickerView(pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? {
         switch pickerView {
-       
+        case self.categoryPickerView:
+            return self.data[row].name
+        case self.subCategoryPickerView:
+            return self.subCatData[row].name
         default:
             return ""
         }

    
    //MARK: - UIDatePicker
    /**
        Initilize DatePicker
    */
    private func initDatePicker() {
        self.createToolBar()
        self.datePickerView.backgroundColor = UIColor.whiteColor()

        self.subCategoryTextField.inputAccessoryView = toolbar
        self.subCategoryTextField.inputView = self.subCategoryPickerView
    }
    
    /**
     dismiss inputView
     */
    func donePressed() {
        self.activeTextField?.resignFirstResponder()
