Simple example on how to add items to the UI dropdown list programmatically with C#. Script finds all gameobjects with a certain tag and adds them to the dropdown.
Download and open this with Unity >= 5 to see how it works. After loading Unity might want you to put the UIDropdown script into the Canvas > Dropdown script component, do that and everything should work.