Monday, 23 March 2015

How can I disable the UITableView selection highlighting? dot syntax


in swift

cell.selectionStyle = .None


http://stackoverflow.com/questions/190908/how-can-i-disable-the-uitableview-selection-highlighting


".None" should be "UITableViewCellSelectionStyle.None" this called dot syntax.

About the dot syntax (.None):

https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Enumerations.html


No comments:

Post a comment