Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I have been searching for drop down view (expand & collapse view) that basically expand when user clicked on it or collapse.
The drop down is basically use to include textview/textfield.
Till now I could not manage to find how to create this drop down view.
What I managed to find is drop down menu which is sort of like an option picker that allows you to select an option. I just wanted to include text only. Is it possible to ask for some pointers regarding this?
Thanks.
I also needed a HTML select-like control (single-selection dropdown list) without breaking the XCode legacy GUI interface across past and future iOS releases.
I ended up coding DownPicker, a lightweight control which does just that combining UITextField and UIPickerView. It can be used either as custom control (UIDownPicker) or also as control wrapper, upgrading any existing UITextField.
Here's how it looks like:
For more info and download you can check this brief tutorial or the GitHub project page (both wrote by me - the project is open-source).
There is no dropdown available in iOS. You should create it with text field and tableview.
Use below links for references:
iOS-Examples--UITableView-Combo-Box
a-simple-drop-down-list-for-iphone
Yes. There is no dropdown component available in ios. And its really frustrating to build a basic component. However, VPPDropDown is there to solve your problem. https://github.com/vicpenap/VPPDropDown
you can see this one too. This library is written with Swift 3
https://github.com/younatics/YNDropDownMenu
http://gabriel-tips.blogspot.in/2011/10/uitableview-display-and-hide-cells-as.html
you can take it as reference, table view is good and efficient way for dropdown. if you got any other way then please let me know..
Adding more options here. People looking for dropdown in iOS can also give VSDropdown a try:
VSDropdown
It automatically controls many stuffs like frame, direction, appearance and dismissal when tapped outside bounds.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've an application and in that I need a side bar just like navigation drawer in android. I've seen several third parties but it seems they are not useful for me. Because I've more than 5 ViewControllers and in each ViewController I need the same Sidebar. How can I do it. And i'm a beginner please help.
try these MMDrawerController its very easy to understand and implement,it offers lots of customization..
https://github.com/mutualmobile/MMDrawerController
There are several libraries that help you accomplish this; a simple Google search for "ios navigation drawer library" will give you some examples. However, please note that this is considered poor UI design these days.
However, if you still want to accomplish this, and you are worried about sharing amongst view controllers, you could use a top-level UINavigationController to hold your child view controllers. Or you could make your own container view controller where you swap out the child view controllers but still show the navigation drawer button somewhere.
There are a Good number of Third Parties available at cocoacontrols.com and at github.com.
goto cocoacontrols.com and type navigation menu or drawer on search bar you will find a lot of answers. Demos are also given in github.
Example links:
https://github.com/mutualmobile/MMDrawerController
https://github.com/aryaxt/iOS-Slide-Menu
https://github.com/JVillella/JVFloatingDrawer
https://github.com/dogo/AKSideMenu
download the zip file and include it in your project and follow the instructions.
But somehow Third party is third party. If you wanna avoid third parties, try popover menus for the same purpose.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I would like to create something like the image below in my iOS app. What is the best way to approach this, note the rows and the columns can vary.
The easiest way I thought of was to insert html table into UIWebView, but not sure if there is a way to intercept radio button clicks like there is for a regular button by making it a "href link"
A little unrelated to what you have as the title of your question, but maybe look at using UISegmentedControl. It's the closest thing to radial buttons that exists in the Objective-C world.
If you went with a segmented control, you no longer need to worry about columns, intercepting touches, and a lot of the other problems you mention in your Question - it could all be done in a normal UITableView. You would have to create some custom UITableViewCell subclasses to get the segmented controls in, but there are a lot of good tutorials (YouTube, Apple Docs, SO) on how to set those up.
From iOS 6+ you could use the UICollectionView class to build up a grid. Managing the values in the data source (representing if a radio is checked or not) is something you'd have to implement yourself.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to create a drop up menu like this.
But I have no clue what it is called, so I can't look for it.
And by the way, are there others methods to create such a "more option"-menu? I know there is the UIPickerView, but if i have only 2 or 3 buttons to choose from it is fairly unnecessary to implement a whole pickview.
Thanks in advance!
David Wong is right, you always can use UIActionSheet for iOS 7 style drop menu, but if you want to use some cool custom controllers here's the list:
Drop menus
REMenu
LBActionSheet
NIDropDown
LHDropDownControl
kxmenu
Modal (cool ones)
KGModal
RNGridMenu
KNSemiModalViewController
But if you're just starting your journey of iOS development, you better stick with UIActionSheet.
Good luck!
That's a UIActionSheet
Just adds buttons and use the various show methods to bring it up. Don't forget to set the delegate to handle which button gets pressed.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I want to put a feedback form in a view in my IOS application.
There will be 2-3 smiley images. Initially they will be in grey color. When you tap one of them, it will be colored, and the rest stays grey. They will work like radio buttons in HTML.
And there will be 5 questions.
So, what is the best way to handle this feedback form in a native IOS application?
Thank you.
In my opinion the best and most simple way would be to do it with an embedded html page. This is great if you already have such a page for the web version.
Another way would be a custom made form in a xib, with custom buttons, but in order for you to actually receive that feedback, you would need to somehow send the data trough a scripted page (php, asp or whatever you like).
I've done similar things and I used the second suggestion I gave you but in my case it was different, because that form had to be presented over an existent view with animation and so on. What I would recommend you is the first one, with the web page.
I think you can use the xib to create the view with the question text and buttons for answer options. The buttons can have the smiley images as background image.
Then you can change the image for the smiley on button click for the button state selected. and may be have another button to confirm answer and move to next question that is refresh view with new question text.
Hope this helps.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
My UI designer favors a radio style button for Yes/No. I understand there is no such UI component in iOS and I would use two different custom images for normal/highlighted state. However, what I need to know if Apple would allow me to do it. Is there any clause in the human interface guideline against using radio style button instead of SegmentControl style? Help would appreciated, thanks
DONT! This really is something you should avoid under pretty much all circumstances. The Apple GUI team has designed a different control for such task and you should rely on the fact that they really did a great job. Keep in mind that the user is using his finger to use the UI and that a radio-button is more or less designed for a mouse cursor. The "circles" would need to be huge to be properly addressable with a finger. Apple recommends 44points square for any touchable control.
Apart from that, you will not get rejected for creating such custom control.
I think that your designer needs to read the Apple HIG. They should know this is a bad idea.