- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
You can have a option in the dropdown with one space as text and assign some value to it..
When the user would like to deselect the in the dropdown, the user can simply change the option to space (which is obviously the first option in the list)..
In your code, you need to check for that value and do the processing only if the user selects a value other than the space.
For example:
Your options in the dropdown could be
Text Value
-------- ----------
(Space) 0
1111 1111
2222 2222
3333 3333
4444 4444
if(dropdown.rawValue != "0"){
//Do the processing steps.
}
If you want to set it to default value thru code:
dropdown.rawValue = "0";
Hope this helps.
Thanks
Srini
Views
Replies
Total Likes