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

store cgpoint in userdefaults iOS swift

libc++abi: terminating due to uncaught exception of type NSException iOS swift