xcode interface builder objects - iphone

I want to create a form for an iphone app. I'm using interface builder to create the fields. I need the equivalent of a select drop down menu. The documentation says to use a pop-up button, but I can't find the darn thing. Where the heck is it??
Also, what about checkboxes?
Thanks

For a drop-down menu use UIPickerView named just "Picker View" in IB. Another option although much harder to implement is a collapsible UITableView.
There are no checkboxes provided by default, so usually it is just an image, that changes when you click it. Or you can use a UISwitch named just "Switch" in IB

Related

Making a drop down list using swift3

I am new to Xcode and the Swift3 language, so can anyone please direct me on how to implement the drop down list in swift3?When I click uibutton open dropdown list.i use three type of button first one is "country" second "city" and third "locality".
I think the best way to implement a dropdown list in iOS is to use a UITableView. In your example you could create one programmatically and add it to the right place on the screen.
Or have one hidden and bring it from / make it visible when tapping the button.
One think about that though, it is not the best UX/UI to have drop down menus in an iOS app. Apple provides a lot of native elements that would do a similar job.
Example 1: Use a modal that has a UITableView (fullscreen or part of the screen) and make it disappear on selection.
Example 2: Use a UIPickerView
In case you still want to stay with that design use something like
https://github.com/AssistoLab/DropDown
I bet if you do a quick googling you'll find more libraries that do something similar

draw button as combobox with ios

I'm attempting to override the onDraw method of a button because I want to create a different styled button. I want to create a button like combobox with iOS SDK. I've already found source code, but it will not work.
Try this for combo box in ios.
IosCombo
Depending on how many entries you're trying to choose from, you might want to look at UISegmentedControl. It's like a radial button, where you can select one "active" option (leaving one or more "inactive" options). It gets cluttered and it becomes hard for the user to select the option they want if you have a lot of different options though.

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
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.
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.

How to make a combobox in iphone

I am trying to make a combobox in ios following this link http://www.codeproject.com/KB/iPhone/iphonecombobox.aspx.
But the click event (that shows the picker) seems to work sometimes and sometimes not. It looks like sometimes it just works in some regions of the control and not others.
Any idea of what is wrong?
It's kind of hacky, but you can add a hidden UIControl around the region of the ComboBox and then wire it up to the same IBAction or void that the existing ComboBox uses. For example, -(IBAction) showPicker could be the action of a new UIControl that you add right around the region.
For some reason, the answer was using the textfield and image directly to the page instead of creating a view for the control and using that view N times.
I created a combobox api for iOS, hope this could be of any help: http://www.chupamobile.com/products/details/365/ZComboBox/

How to create dropdown box?

In my app I want to provide option in dropdown box, I know there is no such thing in iPhone can I create dropdown box using available controllers? Please can anyone suggest me how I can achieve this?
Deepak, You can create a Drop down like control with a help of a UIButton and a UITableView indicating the drop down list. But for sure your application would be rejected by Apple.
Most of the iPhone users would be comfortable using a drop down box in an iPhone app, because people got used to Pickers .
So better go for using UIPicker, which is meant for what you are asking.