Reputation: 1131
hi I want to display drop down menu like the one you see in this image http://callingcard.marigoholdings.com/Screenshots.html#1 (below From and To) How can i create that? Any good tutorial. Best regards
Upvotes: 1
Views: 5283
Reputation: 62519
I wonder if a UIActionsheet might be better ... you could easy make a button to call the sheet. Adding multiple buttons to the sheet transforms it into a table that you can scroll.
Upvotes: 0
Reputation: 5245
It looks like that app is using a combination of a UIWebView and an html select tag. To do something similar would involve a solid bit of html and javascript hackery, but in essence would be:
stringByEvaluatingJavaScriptFromString:
to grab the value of the dropdown by id and pass it back to your code.There are a few gotchas here, mainly with constructing the dropdown and the webview such that it's big enough to show the expanded dropdown but transparent to see under it when the dropdown is not expanded, it's not scrollable, and that sort of thing.
Upvotes: 0
Reputation: 4396
You will have to use UIPicker for this purpose.This is used as a dropdown whereever needed in iPhone.
Please refer the link below
How to create drop down list box for an iphone app
Thanks
Upvotes: 1