pradeep
pradeep

Reputation: 441

how to create the control in xcode

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

Upvotes: 1

Views: 179

Answers (2)

iDev
iDev

Reputation: 23278

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.

Upvotes: 2

codester
codester

Reputation: 37189

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.

Upvotes: 0

Related Questions