Skip to content

Commit

Permalink
Added mask for buttons without corners for rotation purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
irtemed88 committed Jun 22, 2015
1 parent 87e0106 commit b13648e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions IBActionSheetSample/IBActionSheetSample/IBActionSheet.m
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@ - (void)resizeForPortraitOrientation {

switch (self.cornerType) {
case IBActionSheetButtonCornerTypeNoCornersRounded:
[self setMaskTo:self byRoundingCorners:0];
break;

case IBActionSheetButtonCornerTypeTopCornersRounded: {
Expand All @@ -1019,6 +1020,7 @@ - (void)resizeForLandscapeOrientation {

switch (self.cornerType) {
case IBActionSheetButtonCornerTypeNoCornersRounded:
[self setMaskTo:self byRoundingCorners:0];
break;

case IBActionSheetButtonCornerTypeTopCornersRounded: {
Expand Down

0 comments on commit b13648e

Please sign in to comment.