Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save edwardean/d0b644eb78b8cda9f4cb to your computer and use it in GitHub Desktop.

Select an option

Save edwardean/d0b644eb78b8cda9f4cb to your computer and use it in GitHub Desktop.
if ([self respondsToSelector:@selector(setSeparatorInset:)]) {
self.separatorInset = UIEdgeInsetsZero;
}
if ([self respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]) {
self.preservesSuperviewLayoutMargins = NO;
}
if ([self respondsToSelector:@selector(setLayoutMargins:)]) {
self.layoutMargins = UIEdgeInsetsZero;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment