Setting VoiceOver focus order on current collectionView page - swift

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!

Related

How do I have an autoscroll to the right on my text in Xcode (swift)?

For example: spotify-screenshot
If the name of a song is too long in spotify, it will automatically scroll to the right in order to show the full name of the song. I want to achieve something like this with Xcode (version 9), but I don't know how to do it. Currently trying with a textview.. but any help would be appreciated.
edit: I also want to disable manual scrolling of that text field. I want it to exclusively automatically scroll, and reset back to it's original place in some time, which would restart the process of scrolling.
All you are looking for is Marquee Label. Check this link

UI Design for UIDatePicker in iOS

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.

iPhone alternate option for DatePicker

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.

iPhone Footer like functionality

I am having trouble with designing my App.
I am having a button and a label in every page, required functionality is when user clicks a button, it will fetch the last tweet of application's tweeter account and will display it in label.
I know how to fetch and display it in one page.
My question is, can't I create something like custom control, which i just need to place in every page.
Hope, i was able to explain my question.
Any help will be appreciated.. thanks in advance.
Paresh
you create this footer view and place it in the first view (or a base view) and add all the subsequent views below it.. or you could even add it directly to the window..

iPhone using voiceover moves off screen, cannot press button

I have run into a baffling behavior using VoiceOver. Basically when using the "swipe forward" gesture on a screen, the cursor will run off the bottom of the screen and the view will not "move" with it as it should. Worse of all, I have a button down there that is not activated by a double tap when this behavior exists.
What I can gather is that this only seems to happen on two screens, both of which feature customized appearances of the cells in a table view.
I have tried manipulating the accessibilityFrame property of these cells and these table views. I have gotten nowhere. I have tried setting the accessibilityFrame property of the cells as they are made but there was no change in behavior.
Has anyone encountered this behavior? Any ideas for trying to tackle this problem?
I've seen it, but it's not a problem, at least not in my app -- you can double-tap anywhere, not just on the button. (In other words, a blind user won't realize this is going on, because it just works.)