Comments (2)
Hi @Nikoloutsos, you might find tableView.indexPathForSelectedRow
handy.
Also, be careful not to have a strong reference to self (i.e. QuickTableViewController) in the action closure. It'll cause a retain cycle.
..., action: { [weak self] in
if let indexPath = self?.tableView.indexPathForSelectedRow {
self?.tableView.deselectRow(at: indexPath, animated: true)
}
})
Hope it helps.
from quicktableviewcontroller.
I found a solution.
..., action: { _ in self.tableView.deselectRow(at: IndexPath(row: 0, section: 0), animated: false) })
This will do the work!
from quicktableviewcontroller.
Related Issues (20)
- How to pass NavigationRow data and display in custom cell HOT 7
- ask for android version HOT 2
- random cell being highlighted HOT 2
- Switch HOT 1
- How to change text color HOT 2
- New version/release
- How do I change the section colours and fonts? HOT 2
- Missing subtitles with multiple SwitchRow elements HOT 2
- How to disable a setting option HOT 7
- How to make images fit into table cells properly HOT 2
- Package.swift contains too high min deployment target (iOS 13.0) HOT 2
- Is there a way to not auto toggle UISwitch on touch? HOT 4
- Unability to use the library in iOS12 project HOT 2
- How to specify "alwaysSelectsOneOption" in RadioSection HOT 2
- Update the icon property of a NavigationRow HOT 4
- How to disable deselecting radio buttons? HOT 3
- How to reload the settings menu HOT 5
- heightForRowAt function HOT 4
- How to get the modernUI with rounded corners? 🧐 HOT 1
- How can I change selected and deselect accessoryView image? HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quicktableviewcontroller.