Removed obsolete code.
This commit is contained in:
@@ -205,23 +205,12 @@ class WVMDataSource: UIPickerView, UIPickerViewDelegate, UIPickerViewDataSource
|
|||||||
|
|
||||||
func pickerView(_ v: UIPickerView, numberOfRowsInComponent: Int) -> Int
|
func pickerView(_ v: UIPickerView, numberOfRowsInComponent: Int) -> Int
|
||||||
{
|
{
|
||||||
if v.tag == 2{
|
return wvms.count
|
||||||
return ringtones.count
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return wvms.count
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func pickerView(_ v: UIPickerView, titleForRow r: Int, forComponent: Int) -> String?
|
func pickerView(_ v: UIPickerView, titleForRow r: Int, forComponent: Int) -> String?
|
||||||
{
|
{
|
||||||
if v.tag == 2{
|
return wvms[r].name + " - " + wvms[r].desc
|
||||||
print(v.tag)
|
|
||||||
return ringtones[r].name
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return wvms[r].name + " - " + wvms[r].desc
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user