Skip to content
Browse files

suppressed warnings in old Xcode projects

reduced shadow alpha
  • Loading branch information...
1 parent 19a2516 commit 692cbb5c5ff9dacf006c048a8589da596731c1d6 @honcheng committed Dec 7, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 PaperFoldMenuController/PaperFold
  2. +4 −4 PaperFoldMenuController/PaperFoldMenuController.m
2 PaperFoldMenuController/PaperFold
@@ -1 +1 @@
-Subproject commit 1ff5c6da965561ee38240f0a3691138abb492250
+Subproject commit 1abef49e0aea244e725bcbf88dee76ac764e4936
View
8 PaperFoldMenuController/PaperFoldMenuController.m
@@ -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;
}
@@ -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

0 comments on commit 692cbb5

Please sign in to comment.
Something went wrong with that request. Please try again.