I need to select dates from a calender with a click of a button.
I tried UIDatePicker, but it is occupying major part of screen.
Can I have any other way to do this?
Thanks in advance.
It's generally recommended to use the UIDatePicker.
I would suggest you link it to a button/tableviewcell, which when pressed presents an actionsheet with the UIDatePicker. This way will shortly occupy a large part of the screen when it's selected. In my experience there is no other way around it.
Related
I am trying to add full VoiceOver support to my app. I have a calendar that's a collectionView where the current date is in one of the middle pages. When using the one-finger swipe in VoiceOver to change the speaker focus, it automatically goes to the first page of the collectionView.
How can I have VoiceOver's focus automatically go to the current page instead of the first?
I know that accessibilityElements can set the order of VoiceOver's focus, but I cannot figure out how to have it start at the correct index. Please let me know if you know anything or if this is the right method. I really appreciate any help you can provide!
Good Afternoon/Evening/Morning Folks,
I recently encountered a discussion with another developer on dismissing a UIPickerView. We work on a legacy enterprise application that had a lot of issues and was written very poorly (among other things). Since then, we revamped and fixed a lot of bugs with this program, strictly adhering to Apple's Human Interface Guidelines as much as possible while keeping to original requirements.
We seem to have a difference in opinion as Human Interface Guidelines do not really go into any detail about picker views. We implemented our new UIPickerView with a "Done," Button to confirm a selected value to be placed in a UITextField. Screen's input would be locked until they selected a value or clicked done.
Legacy application prior to our changes allowed users to utilize a done button but also by way of tapping a value selected in a picker. In addition, legacy application would also show selected UIPickerView value in UITextField prior to selection, wiping out original contents , if any was selected prior to opening a UIPickerView.
So, What is correct way to implement a UIPickerView per common practice or Strict Apple Documentation (if any exists). What is common practice?
Sorry, I cannot post any screen shots or code snippets due to business process reasons. I will do my best to explain if any questions arise.
Thanks,
We can figure this out through apps designed by Apple. Here are two examples
1. Contacts
Find a contact person in the Contacts app and set birthday. The picker shows up. While you are dragging the pickers, it does not set value to the text field. It happens only when you release the wheel. There is no Done button to hide the picker it self. To dismiss it, you can either click on the done button on navigation bar to end editing for the whole page, or click on another text field which pops a different keyboard.
2.Setting - Date&Time
Basically the same as Contacts app. Here you cannot even dismiss the picker.
I have experience in Android and currently started to learn iOS. I created a mechanism to Pick data in an Android App. When I click on Date button, a DatePicker pops up:
As you see It has Cancel and Set button.
My question is about my iphone App. I want to have the same mechanism. When I click on the button, Date picker pops up (that can have Set and cancel button like Android Date picker). How can I do that? I'm not sure that it is a good way in iPhone, Can you help me if we can design a better mechanism?
Here's a UX comparison between Android and iOS standard widgets, with links to the documentation on the relevant Apple / Android websites. It's a nice way to get started learning all the technical terms.
http://kintek.com.au/blog/portkit-ux-metaphor-equivalents-for-ios-6-and-android-4/
Hopefully that gets you started.
Apple has a sample project that demonstrates this. You'll have to adapt it slightly: instead of showing/hiding the date picker itself, you'll want to show/hide a view containing a date picker and a dismissal button.
It's called DateCell.
Basically, it treats the date picker as if it were the keyboard for a cell containing the date. You'll need to manage hiding it when the user enters a text field (and thus, needs the real keyboard) and scrolling to keep the date row in view, but all the bits you need are in this project one way or the other.
One way to do it would be add a custom buttons to the same view containing date picker and then pop it up when the users wants. Instead of using the date picker delegate use the buttons action to get the date picker value.
I am trying to get a popup appear the first time an app is started. Just to give you an idea check the new version of foursquare. A small popup (like a comic) appear explaining where the checkin button is located. Then if you tap anywhere it goes away. I googled for the last hour but I have not found anything at all and I have no idea on how to do it.
Anyone can point me in the right direction?
Thanks in advance,
Umberto
You can show a customized UIlabel on app's load and then use performSelectorAfterDelay: and hide the label inside this method. For the tapping thing you can add a UITapGesture on your view to notify if some tap's occurred and hide the label if it's still there.
You can have a look at TapKu by Devin Ross http://www.cocoacontrols.com/platforms/ios/controls/tapku-alerts-with-images
When I set the value 'true' to showCancel property in the method Titanium.UI.createSearchBar. It displays me the cancel button, but I would like to customize that button text to Go or anything else. How do I do that? Please give me suggestions. Thanks you so much.
I don't believe in Titanium Mobile SDK 1.4 you can change the button text.
As a work around you could add your own button to the screen and have it interact with the tableview. Not an ideal solution though.
Please find below the current documentation link.
http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.SearchBar-object