I am trying to implement a drop down UI in my project, and noticed that Cocoa doesn't offer a standard drop down, only a picker. What is the best way to create a dropdown menu like this in iOS in Swift.
In ios there is no dropdown option. The best way is go with UIPopoverController. refer the below links it will help you.
https://www.raywenderlich.com/29472/ipad-for-iphone-developers-101-in-ios-6-uipopovercontroller-tutorial
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/#//apple_ref/c/tdef/UIModalPresentationStyle
Related
I've developed android app for a while, however I just started swift.
I'm going to develop an app which its android version have about 10~12 items in side bar drawer menu.
I want to know are there any best practice for iOS to have about 10 items on side bar drawers, using third party libraries or there are some other solution?
You can find many types of Side menu from cocoacontrols. According to your requirement, download any.
https://www.cocoacontrols.com/search?q=side+menu
If you need some 3rd party library for side menus, you can easily use some of these
SideMenu
SideMenuController
SlideMenuControllerSwift
to simply install them you can use CocoaPods (on this website you can also find other 3rd party libraries)
Anyway, my preferences are not to use these side/slide/hamburger menus and instead you should reorganize your app and you should rather think about UITabBarController
simple and easy to implement swift slideMenu (with custom UI)
AKSlideMenu
Hope this help
https://github.com/SURYAKANTSHARMA/SKSideMenu.
You can drag it into your project or customize this
One of my friends is building an app and needs some help implementing a slide-out menu, kinda like what Slack or GroupMe has. He asked me since I have some experience with C. I found this open-source code, but the guides attached are either outdated or use methods I can't, as the app doesn't have a storyboard.main and is written in C. I was hoping someone either help me with using this without using Storyboard.main, or provide another implementation of the slide-out menu that I could incorporate into a C-built app.
You could try using a regular UIView for the menu and just have it offscreen until it is needed.
Try to use MMDrawerController library. It's very flexible in layout and easy for using.
I am using Picker for displaying the items,I want to select multiple rows in picker, is there any way to achieve this in Xamarin Forms shared code or through rendering? any suggestion or idea would be much appreciated.
Thanks.
I don't would use Picker for multilselection.
You can do this with a ListView (100% XF-Code).
I have posted some code some time ago in the XF-forum:
http://forums.xamarin.com/discussion/17885/multiselect-listviews
If you have to show the "Multiselect-ListView" from a ScrollView, you may also be interested to use the PopUp-Control (XLabs):
https://forums.xamarin.com/discussion/33587/how-to-use-a-listview-in-a-scrollview-with-xlabs-popup-control#latest
And finally, if you want to install the XLabs-NuGet, a further posting to XLabs may help you (search for "How to install, setup and use XLabs" in the XF-forum).
As i don't have more than 10 rep-points here, I am not able to post more then two links :-)
Hope this helps...
No there isn't.
The Picker Class, has SelectedIndex property, but no SelectedItems collection. Also, the native control under the hood on iOS doesn't support selecting multiple rows and I don't think the Android or Windows one do either.
You could create use a Custom Renderer if there was a native control you wanted to use. But, it would probably be easier to use a ListView control and add some events and style it to look and behave like you want.
I want to create select box just like creating events in calendar when choosing start time and end time. Any suggestion?
Because I can't find any resources about this.
Please help.
Normally, we handle this using UIDatePicker or custom of UIPickerView. But, it's still able to create something like a select box using UITableView. Some people do want it look like a select box instead of using the native iOS widget. However, we always suggest to use the iOS widget so that user will not get confused because they have adapted to the iOS world.
Using UIPickerView solved the problem.
I'm looking to create a grid of icons from which one can be selected (see the Daytum app for an example of this).
Are there any existing form entry frameworks for iOS that already support this (eg QuickDialog is excellent, but doesn't support this)
What would be the best way to implement this? Assuming selecting an icon brings the user back to a form field with the icon populated in the field.
Are there any other apps apart from Daytum that use this 'model?
Three20 has a grid view controller, that makes it pretty easy to add icons in a grid.
I'm a huge fan of AQGridView. Used it in a couple of projects and i think its really really built well and easy to implement.