I'm using Voice Over in my application. I'm having hard time to figure out which table cell is currently selected when voice over is on. How can I know whenever user initiates single tap or navigate through any tableviewcell?
How can I get IndexPath of currently selected tableviewcell by voice over?
1k views Asked by Hiren Prajapati At
1
There are 1 answers
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in OBJECTIVE-C
- How to control the volume of an iPhone programmatically in objective-c
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- How to set value the descriptor of iOS BLE in Objective-C?
- Unexpected #selector() Behavior in Swift-Objective-C Interop?
- In what context can we use an unqualified #selector() expression in Swift?
- AVPictureInPictureController crashes during initialization
- How to use pow() in Objective-C?
- How to change the image on the MGSwipeButton in MGSwipeTableCell
- Using sort descriptors in Outline View
- Why is my Swift function not printing from inside the dataTask closure?
- Using UICollectionViewCell with IBOutlet
- Undefined symbol: _OBJC_CLASS_$_ only on simulator
- Why can't I receive a notification sent from Camera Extension(Swift) to an observer application (obj-c++)
- Behavior of __block modifier in objc
- Inserting subview into view where I've added subviews and sublayers
Related Questions in UITABLEVIEW
- How to make tableview reload correct data?
- UITableView hierarchy is not in a single line
- How to delete the space between UITableViewCell in plain style UITableView on visionOS?
- Dropping Pin into Map view when table view cell is selected
- UITableView not showing class array data
- Inconsistent Index Path Printing in UITableView Cell with UIButton Inside
- Potential race condition on Combine's @Published property wrapper
- UITableView gets cut off at the bottom / UIScrollView, UITableView, uitableviewdiffabledatasource
- Cannot Convert Custom ExpyTableView Type in Swift
- How to create the following design using Swift UIKit?
- UITextView textContainer.exclusionPaths not working well
- The content of UIHostingController has a weird offset when it is placed in each uitableviewcell
- UITableView's cellForRowAt not being called
- How do I inject reference types in a table view cell and reload the row of the said cell without causing a memory leak?
- Animation in UICollectionViewCell Stops When Reloading Array Data
Related Questions in NSINDEXPATH
- Errors on [indexPath!] and [newIndexPath!] - the message "Cannot convert value of type 'NSIndexPath?' to expected element type 'IndexPath'
- Append CellType Index Out Of Range Error Swift
- XPath for first word?
- Like button on wrong cell for UITableView after search
- Update Specific Button Image in UITableView Cell
- firestore document deletes and crashes with an error in logic but deletes fine without logic
- Still can't delete tableviewcells
- Create generic function to get indexpath from table and collection view - iOS - Swift
- Print indexpath row on label in each table view cell
- Why am I getting an error on calling getIndex(cell: TableViewCell1) function in swift?
- Swift Pass data prepareforsegue IndexPath multiple collectionViews
- Why indexPath can change after a URLSessionTask finishes?
- How to delete rows in different section of tableview with swift?
- Why is editActionsForRowAt returns a lot of images instead of one image?
- Scroll To Item UICollectionView with UIButton programmatically
Related Questions in VOICEOVER
- What Cisco unity connection messaging system does?
- Double tap via VoiceOver on table cell not working on few cells
- Voice over gender changes between UIKit and SwiftUI views
- Mac Voiceover recognize select2 element as text
- SwiftUI bug? Elements invisible in Voice Over mode
- How to start SwiftUI List onDelete action with VoiceOver?
- SwiftUI LazyVGrid - How to fix broken VoiceOver order?
- Why does Voiceover on safari mobile read out page title on load?
- SwiftUI Alert and AccessibilityFocusState Not Changing Focus
- SwiftUI Alert and Accessibility with Voiceover
- AVPlayerviewcontroller Voice Over Accessibility
- How do I stop Apple VoiceOver double-reading headings with multiple elements?
- How to disable Direct Touch Area on MyApp
- How to prevent Voiceover resetting to the first page when navigating SwiftUI TabView?
- How does accessibilityTextContentType changes Texts in SwiftUI using VoiceOver
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
These are the things you can try:
UIAccessibilityFocusedElementglobal functionaccessibilityElementDidBecomeFocusedandaccessibilityElementDidLoseFocuson the cellUIAccessibilityElementFocusednotification inNotificationCenterin situations where you need it (e.g. when the view controller for the table in question is showing)Also what element will report focus will most probably depend on whether your UITableViewCell has
isAccessibilityElementset totrueorfalse.While the above will probably help you with literally what you asked, it is also possible that your overall approach to accessibility in this situation might be wrong if you need the above information. If you share more info on the bigger picture / motivation what you are trying to achieve, it might turn out that the information about focused element might not be needed at all and that another solution is more proper.
If what you need is to add a hint for swiping, you can simply set
accessibilityHinton the proper element (if you setisAccessibilityElement = trueon the whole cell, then set that on the whole cell, otherwise try setting it on the label that VoiceOver reads in the cell), e.g. when you configure the cell for display (usually intableView(_:cellForRowAt:)). In such case, you will not need to observe which element is focused, and simply let VoiceOver read hint available on that particular element/cell.