Selection style for particular sections in a tableView wants to be none in swift

 Problem:

I had a tableview with few sections.I want some sections to be selectable and some rows wants to be non selectable with no gray option.


Solution:

            cell.selectionStyle = .none

You have to add the above to the particular cell.It will works good.Happy coding..

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift