Permalink
Browse files

Example project conform to new structure and delegates. General .giti…

…gnore file.
  • Loading branch information...
1 parent edfcdee commit ac13c2cc38cf7f250fd607a45eec6a4d27bdcfd5 @alvesjtiago alvesjtiago committed Aug 10, 2012
Showing with 22 additions and 9 deletions.
  1. +19 −6 .gitignore
  2. +3 −3 PaperFold/PaperFold/DemoRootViewController.m
View
@@ -1,6 +1,19 @@
-PaperFold/PaperFold.xcodeproj/project.xcworkspace/xcuserdata/honcheng.xcuserdatad/UserInterfaceState (honcheng's iMac's conflicted copy 2012-07-26).xcuserstate
-PaperFold/PaperFold.xcodeproj/project.xcworkspace/xcuserdata/honcheng.xcuserdatad/UserInterfaceState.xcuserstate
-PaperFold/PaperFold.xcodeproj/project.xcworkspace/xcuserdata/honcheng.xcuserdatad/WorkspaceSettings.xcsettings
-PaperFold/PaperFold.xcodeproj/xcuserdata/honcheng.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
-PaperFold/PaperFold.xcodeproj/xcuserdata/honcheng.xcuserdatad/xcschemes/PaperFold.xcscheme
-PaperFold/PaperFold.xcodeproj/xcuserdata/honcheng.xcuserdatad/xcschemes/xcschememanagement.plist
+# Exclude the build directory
+build/*
+
+# Exclude temp nibs and swap files
+*~.nib
+*.swp
+
+# Exclude OS X folder attributes
+.DS_Store
+
+# Exclude user-specific XCode 3 and 4 files
+*.mode1
+*.mode1v3
+*.mode2v3
+*.perspective
+*.perspectivev3
+*.pbxuser
+*.xcworkspace
+xcuserdata
@@ -74,10 +74,10 @@ - (id)init
// you may want to disable dragging to preserve tableview swipe functionality
// disable left fold
- //[self setEnableLeftFoldDragging:NO];
+ //[_paperFoldView setEnableLeftFoldDragging:NO];
// disable right fold
- //[self setEnableRightFoldDragging:NO];
+ //[_paperFoldView setEnableRightFoldDragging:NO];
}
return self;
}
@@ -130,7 +130,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
#pragma mark paper fold delegate
-- (void)paperFoldView:(id)paperFoldView didTransitionToState:(PaperFoldState)paperFoldState
+- (void)paperFoldView:(id)paperFoldView didFoldAutomatically:(BOOL)automated toState:(PaperFoldState)paperFoldState
{
NSLog(@"did transition to state %i", paperFoldState);
}

0 comments on commit ac13c2c

Please sign in to comment.