Skip to content

Commit

Permalink
suppressed warnings in old Xcode projects
Browse files Browse the repository at this point in the history
reduced shadow alpha
  • Loading branch information
honcheng committed Dec 7, 2012
1 parent 19a2516 commit 692cbb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions PaperFoldMenuController/PaperFoldMenuController.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ - (void)setSelectedIndex:(NSUInteger)theSelectedIndex
{
if (!self.isViewLoaded)
{
__weak typeof(self) theWeakSelf = self;
__weak __typeof(*&self) theWeakSelf = self;
[self.viewDidLoadBlocks addObject:[^{
__strong typeof(self) theStrongSelf = theWeakSelf;
__strong __typeof(*&self) theStrongSelf = theWeakSelf;
if (theStrongSelf == nil) {
return;
}
Expand Down Expand Up @@ -209,8 +209,8 @@ - (void)viewDidLoad
menuTableView.scrollsToTop = !(self.paperFoldView.state == PaperFoldStateDefault);
self.menuTableView = menuTableView;

ShadowView *menuTableViewSideShadowView = [[ShadowView alloc] initWithFrame:CGRectMake(_menuTableView.frame.size.width-3,0,3,[self.view bounds].size.height) foldDirection:FoldDirectionHorizontalLeftToRight];
[menuTableViewSideShadowView setColorArrays:@[[UIColor clearColor],[UIColor colorWithWhite:0 alpha:0.6]]];
ShadowView *menuTableViewSideShadowView = [[ShadowView alloc] initWithFrame:CGRectMake(_menuTableView.frame.size.width-2,0,2,[self.view bounds].size.height) foldDirection:FoldDirectionHorizontalLeftToRight];
[menuTableViewSideShadowView setColorArrays:@[[UIColor clearColor],[UIColor colorWithWhite:0 alpha:0.2]]];
/**
* added to the leftFoldView instead of leftFoldView.contentView bec
* so that the shadow does not appear while folding
Expand Down

0 comments on commit 692cbb5

Please sign in to comment.