how to create the control in xcode - iphone

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.

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

xcode interface builder objects

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

In Xcode 4 which is the better app Window based or view based?

I am very new to iOS development. I am going to start a new project which is mostly related to to the database. Can you suggest what should I start from Window or view based app?
A view-based app only have one view, and includes a nib. However, window based app don't include a nib or a view, it's for add your own view.
I would chose view-based
1.There is no such difference in both
In View Based app you will get a default view controller in window.
In Window Based app you will not get anything by default already added in window, you have to add your own view.
They're used for different things. Neither is better than the other.
If you're a total rookie, I'd go with View based. It comes wired up with more stuff for you by default, and lets you work on your app's functionality rather than the details of getting stuff on the screen. It also limits you in ways that Window based doesn't, but for your level that's probably a good thing.
Anyway you have to make ViewController if you make project using window based.
Make your project using window based and View based. and compare both. So you can find what is different.
and iOS can have many view on only one window.

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.

iphone, how to create Combobox like in this image (Birthday combo box)

How can i display combo box like the one you see in the image (Birthday combobox) on this site:
http://www.edumobile.org/iphone/iphone-programming-tutorials/how-to-use-picker-in-iphone/
Is it UITextField or UIButton... How can i create such control?
I think it's a custom button with image that looks like combobox. pressing it opens probably a date picker. You need an image that looks like combobox and to customize your table cell appearance - add a button as accessory view or create a custom cell in IB
You are referring to the screenshot at the top of the article ?
To me it looks like the app is either a WebView or has manually created button image ... to my knowledge there is no native Combo buttons in the UIKit.
Sorry to share the bad news.
Good Luck