Question: I have a `UIPickerView` that was programmed manually so that I was able to add seconds. The `UIPickerView` lets you choose hours, minutes, and seconds. I am having a very hard time figuring out how to get the data from this picker so that I can store it. Can someone help me? All the ones that apple has pre made have attributes that you can easily call to get the value but since I am using my own I am not sure how to tackle it. Thanks!

my didSelectRow method

```
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
    NSInteger hRow = [timerDurationPicker selectedRowInComponent:0];
    NSInteger mRow = [timerDurationPicker selectedRowInComponent:1];
    NSInteger sRow = [timerDurationPicker selectedRowInComponent:2];
}

```

Answer: 
Then you can implement this delegate method.

```
- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component
{
      //Do you stuff here.
}

```

It will fire when you select on the particular row in picker. For example, If you select on first component, You can get selected index for first. At the same time, you want to get index of other component means, you can use this method. `selectedRowInComponent:`.
You can assign the delegate and datasource for the UIPickerView. So, In delegate methods you can get the actions from UIPickerView. Please refer this for more info : <https://developer.apple.com/library/ios/documentation/uikit/reference/UIPickerView_Class/Reference/UIPickerView.html>

**Selecting Rows in the View Picker**

* – selectRow:inComponent:animated:
* – selectedRowInComponent: