Creating selectbox in swift - ios

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.

Related

Best way to implement drop down UI in iOS (Swift)

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

Xamarin Forms iOS - PickerView with Multi Row Selection

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.

Spinner in iOS, like in Android

I am very first time developing the Spinner in iOS.
I searched a lot for default Spinner view in iOS, but failed.
What I get is, two ways to design spinner like view in iOS.
UIPickerview
Custom TableView which will be displayed on Click of DownArrow Button
I found the tutorial for UIPickerview.
But There are some OS orientation for this,
Means I want the UIPickerview in different Look & feel with selection style, also Scrolling of picker is not as I want.
So I was thinking to go for second options.
But Is there any other superior way to achieve this task,
As I think the second option is GOOD, but NOT BEST.
What I want is like the image below, its from Android,
I want to go for the same in iOS.
Thanks for help..
I think what you are looking is here
But I use RMPickerViewController which is more powerfull.

iPhone Share Button

How can I recreate this, something found throughout native iPhone apps such as Safari and Photos.
I'm assuming it is pretty simple, I just don't even know what it is called so I'm having trouble finding out how.
It is usually reached using an action (or export or something) button.
The same functionality is called as UIActionsheet. You can get plenty of examples for the same on SO itself.
you are looking for whats called a UIActionSheet
check this out for more info
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIActionSheet_Class/Reference/Reference.html
you have to create action sheet https://github.com/gpambrozio/BlockAlertsAnd-ActionSheets

ios uitableviewcontroller edit mode

I'm looking the CoreDataBooks sample to manage the data using the uitableviews and I have a question: when I choose a book, appears a table like this:
and if I press edit, to edit the values I need to go to another view....
it's possible make a think like the contacts app, and edit directly the values cliking?
thanks!
you can use the This Example from apple, hopes this helps.

Resources