Skip to content

Instantly share code, notes, and snippets.

@gekitz
Created January 26, 2015 21:23
Show Gist options
  • Save gekitz/43bc10fb12a84bac3782 to your computer and use it in GitHub Desktop.
Save gekitz/43bc10fb12a84bac3782 to your computer and use it in GitHub Desktop.
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