Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach Drayer committed Feb 4, 2012
2 parents f0bd6d1 + 1a0059a commit 3e0ca03
Show file tree
Hide file tree
Showing 12 changed files with 368 additions and 465 deletions.
Expand Up @@ -168,7 +168,7 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interface
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}

- (void) willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
CATransition *fadeTransition = [CATransition animation];
fadeTransition.duration = duration;
Expand Down
16 changes: 8 additions & 8 deletions KKGridView.xcodeproj/project.pbxproj
Expand Up @@ -29,8 +29,8 @@
F42166A714A3A610004E0C32 /* KKGridViewIndexView.m in Sources */ = {isa = PBXBuildFile; fileRef = F42166A514A3A610004E0C32 /* KKGridViewIndexView.m */; };
FC368B40149B483900B92E57 /* KKBlocksDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = FC368B3E149B483900B92E57 /* KKBlocksDelegate.h */; };
FC368B41149B483900B92E57 /* KKBlocksDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = FC368B3F149B483900B92E57 /* KKBlocksDelegate.m */; };
FC53DF8313E629FE000767B1 /* KKGridViewViewInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = FC53DF8113E629FE000767B1 /* KKGridViewViewInfo.h */; };
FC53DF8413E629FE000767B1 /* KKGridViewViewInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = FC53DF8213E629FE000767B1 /* KKGridViewViewInfo.m */; };
FC53DF8313E629FE000767B1 /* KKGridViewSectionInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = FC53DF8113E629FE000767B1 /* KKGridViewSectionInfo.h */; };
FC53DF8413E629FE000767B1 /* KKGridViewSectionInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = FC53DF8213E629FE000767B1 /* KKGridViewSectionInfo.m */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -61,8 +61,8 @@
F42166A514A3A610004E0C32 /* KKGridViewIndexView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KKGridViewIndexView.m; sourceTree = "<group>"; };
FC368B3E149B483900B92E57 /* KKBlocksDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KKBlocksDelegate.h; sourceTree = "<group>"; };
FC368B3F149B483900B92E57 /* KKBlocksDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KKBlocksDelegate.m; sourceTree = "<group>"; };
FC53DF8113E629FE000767B1 /* KKGridViewViewInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KKGridViewViewInfo.h; sourceTree = "<group>"; };
FC53DF8213E629FE000767B1 /* KKGridViewViewInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KKGridViewViewInfo.m; sourceTree = "<group>"; };
FC53DF8113E629FE000767B1 /* KKGridViewSectionInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KKGridViewSectionInfo.h; sourceTree = "<group>"; };
FC53DF8213E629FE000767B1 /* KKGridViewSectionInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KKGridViewSectionInfo.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -126,8 +126,8 @@
1A3F1B7313E34CF8006747A3 /* KKGridViewUpdate.m */,
1A3F1B6E13E34A61006747A3 /* KKGridViewUpdateStack.h */,
1A3F1B6F13E34A61006747A3 /* KKGridViewUpdateStack.m */,
FC53DF8113E629FE000767B1 /* KKGridViewViewInfo.h */,
FC53DF8213E629FE000767B1 /* KKGridViewViewInfo.m */,
FC53DF8113E629FE000767B1 /* KKGridViewSectionInfo.h */,
FC53DF8213E629FE000767B1 /* KKGridViewSectionInfo.m */,
1A0BEC7413DDF862003C2632 /* KKIndexPath.h */,
1A0BEC7513DDF862003C2632 /* KKIndexPath.m */,
1A72A9731453AE42002546F8 /* KKGridViewController.h */,
Expand Down Expand Up @@ -180,7 +180,7 @@
1A0BEC7613DDF862003C2632 /* KKIndexPath.h in Headers */,
1A3F1B7413E34CF8006747A3 /* KKGridViewUpdate.h in Headers */,
1A3F1B7013E34A62006747A3 /* KKGridViewUpdateStack.h in Headers */,
FC53DF8313E629FE000767B1 /* KKGridViewViewInfo.h in Headers */,
FC53DF8313E629FE000767B1 /* KKGridViewSectionInfo.h in Headers */,
FC368B40149B483900B92E57 /* KKBlocksDelegate.h in Headers */,
F42166A614A3A610004E0C32 /* KKGridViewIndexView.h in Headers */,
);
Expand Down Expand Up @@ -242,7 +242,7 @@
1A0BEC7713DDF862003C2632 /* KKIndexPath.m in Sources */,
1A3F1B7113E34A62006747A3 /* KKGridViewUpdateStack.m in Sources */,
1A3F1B7513E34CF8006747A3 /* KKGridViewUpdate.m in Sources */,
FC53DF8413E629FE000767B1 /* KKGridViewViewInfo.m in Sources */,
FC53DF8413E629FE000767B1 /* KKGridViewSectionInfo.m in Sources */,
1A72A9761453AE42002546F8 /* KKGridViewController.m in Sources */,
FC368B41149B483900B92E57 /* KKBlocksDelegate.m in Sources */,
F42166A714A3A610004E0C32 /* KKGridViewIndexView.m in Sources */,
Expand Down
8 changes: 5 additions & 3 deletions KKGridView/Definitions.h
Expand Up @@ -15,9 +15,11 @@
// Macros

#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 50000
#define __kk_weak weak
#else
#define __kk_weak unsafe_unretained
#define kk_weak weak
#define __kk_weak __weak
#else
#define kk_weak unsafe_unretained
#define __kk_weak __unsafe_unretained
#endif

static inline bool KKCGRectIntersectsRectVertically(CGRect rect1, CGRect rect2)
Expand Down
4 changes: 2 additions & 2 deletions KKGridView/KKGridView.h
Expand Up @@ -46,8 +46,8 @@ typedef enum {
@property (nonatomic, readonly) NSUInteger numberOfSections;

#pragma mark - Data Source and Delegate
@property (nonatomic, __kk_weak) IBOutlet id <KKGridViewDataSource> dataSource;
@property (nonatomic, __kk_weak) IBOutlet id <KKGridViewDelegate> gridDelegate;
@property (nonatomic, kk_weak) IBOutlet id <KKGridViewDataSource> dataSource;
@property (nonatomic, kk_weak) IBOutlet id <KKGridViewDelegate> gridDelegate;

#pragma mark - Getters

Expand Down

0 comments on commit 3e0ca03

Please sign in to comment.