Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

NIDrawRectBlockObject: Transparent background #320

Merged
merged 1 commit into from

2 participants

Shukuyen Jeff Verkoeyen
Shukuyen

Changed background color of NIDrawRectBlockView to clear.
This allows the cell to be used in grouped tableviews. At the moment the background color is black, resulting in black corners for custom drawn grouped tableview cells.

Shukuyen Shukuyen NIDrawRectBlock: Transparent background
Changed background color of NIDrawRectBlockView to clear
9ee688c
Jeff Verkoeyen jverkoey merged commit ffe97ff into from
Jeff Verkoeyen
Owner

Wicked, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 8, 2012
  1. Shukuyen

    NIDrawRectBlock: Transparent background

    Shukuyen authored
    Changed background color of NIDrawRectBlockView to clear
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/models/src/NICellCatalog.m
8 src/models/src/NICellCatalog.m
View
@@ -195,6 +195,14 @@ @implementation NIDrawRectBlockView
///////////////////////////////////////////////////////////////////////////////////////////////////
+- (id)initWithFrame:(CGRect)frame {
+ if ((self = [super initWithFrame:frame])) {
+ self.backgroundColor = [UIColor clearColor];
+ }
+ return self;
+}
+
+///////////////////////////////////////////////////////////////////////////////////////////////////
- (void)drawRect:(CGRect)rect {
if (nil != self.block) {
self.block(rect, self.object, self.cell);
Something went wrong with that request. Please try again.