1

I'm new to iphone programming. there are lot of basic controls in xcode which i can implement but i want to know how to create the control shown below in iphone.

It is not present in list of control objects in xcode

enter image description here

4

2 回答 2

2

There are no default dropdown implementations available for iPhone. You can try to implement a UIPickerView or UIActionSheet based on the requirement.

If you cannot modify your design, you can go ahead and implement your own dropdown implementation. Basically you need to have a button with the above image as background view and on tap of that you need to show a table view below that. Alternatively you can check this custom dropdown list and this Drop Down Demo iOS.

于 2012-12-18T18:58:48.310 回答
0

Xcode does not provide this control.You can create custom control with a table view and Button.Show the table view when you click on it and hide it on again clicking on it.You can also add images on background for the same look.

于 2012-12-18T19:04:35.670 回答