Created
January 26, 2015 21:23
-
-
Save gekitz/43bc10fb12a84bac3782 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func addSubview(view: UIView) { | |
//for some reason view could also be nil, | |
//even though it's not an optional | |
let possibleNilView:UIView? = view as UIView? | |
if let v = possibleNilView? { | |
if v.dynamicType.description() == "_" + "UITableViewCell" + "SeparatorView" { | |
return | |
} | |
} | |
super.addSubview(view) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment