drop down lists in xcode - iphone

Ive got a button in a UICell. I want a list(a table view like view to be precise) to dropdown when the user touches the button and dissappear when he touches it again.Googling didnt get me any solutions:-(
Any suggestions on sites to refer would also be appreciated..

There is nothing quite like what you want in UIKit. I would recommend building the sample "UICatalog" application and playing around with it to see if anything does what you need. If it does not, you will need to create your own control.

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

Swift- How do I make it so that if the user clicks the button it takes them to a new view?

I'm currently trying to create a small notepad app, and i'm in need of help. I am using a Tabbed View Application. Say we had a view that has two text fields for Name and short description, and then a button beneath saying "Create Note".
How can I make this button change the view to my editor/notepad view that does not have the tabs at the bottom?
Thanks
If you are using storyboards, which I assume that you are, what you will want to use are triggered movements called segues.
To create one, right-click on the button and drag the line that appears to the second view, and then release.
It should look like this:
Then, when you release, a gray box will appear, with a list of segues. You can find out what each one does online, and as you get more advanced you can develop custom ones.
However, use Modal as a basic one to begin with.
Hope this helps,
Will.
PS. In the future, try and make your questions more specific, and do some research before you ask a question. It's important that you gain a good reputation on Stack Overflow if you want your questions answered properly.

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/

Make a home view for application

Hi guys i am very eager to know that how we can make a view like in this application having different icons calling different viewcontrollers and edit button to add shorcuts to tab bar at the bottom. Any tutorial link will be appreciated .
Thats a really long view, why would you want that? Unless you are putting that into a UIScrollView..
Check Three20 Launcher, it may suit your needs, and it is widely used in many apps.
Here is a tutorial for using the UITabBarController: http://21gingerman.wordpress.com/2009/04/06/tutorial-and-sample-code-for-iphone-app-with-tab-bar-and-nav-bar/
Which seems like what you're asking for.
It will allow you to have a "More" button which gives you the view you're looking for.
Otherwise, seems like if you need more control, what you're looking for could be accomplished fairly simply with a UIScrollView and some UIImageViews. There are two great videos on using UIScrollView in the developer videos section of the apple dev site. (They open up in iTunes) http://developer.apple.com/videos/

How do I create a simple two-screen iPhone app?

I've gone through most of the example code and I still need some help. I want to make an uber-simple app: show one screen at startup with a label and a button. click the button and we slide over to another screen (I suppose these are called views) which has another label and the "back" button in the top menu bar. I just want to click back and forth between the two screens.
How do I do this?
Take a look at the NavBar sample on Apple's Developer website. http://developer.apple.com/iphone/library/samplecode/NavBar/index.html
You'll need to use a UINavigationController to accomplish the "slide"/"back button" behavior you're talking about. It is as simple as you might think, as long as the app is setup correctly. Essentially, UINavigationControllers allow you to push and pop instances of UIViewController or subclasses thereof, and take care of the animation and view history tracking for you.
The best way to get started, by far, is just open XCode, choose "New Project", and start with the "Navigation-Based Application." Dig around that project for a while and I think you'll start to see clearly what needs to be done.
You can checkout how to get started with that using this tutorial: at wattz.net