Skip to content
Browse files

Removed some loging code

  • Loading branch information...
1 parent c41f235 commit 22be7b7adce5b6a587971ff9cd9c6fa1e5f048b2 @gmoledina committed Dec 15, 2011
Showing with 6 additions and 13 deletions.
  1. +5 −2 GMGridView/API/GMGridView.m
  2. +1 −11 GMGridView/Demo1ViewController.m
View
7 GMGridView/API/GMGridView.m
@@ -274,7 +274,8 @@ - (void)layoutSubviews
[self loadRequiredItems];
};
- if (_rotationActive) {
+ if (_rotationActive)
+ {
CATransition *transition = [CATransition animation];
transition.duration = 0.25f;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
@@ -290,7 +291,9 @@ - (void)layoutSubviews
}
completion:nil
];
- }else {
+ }
+ else
+ {
layoutBlock();
}
}
View
12 GMGridView/Demo1ViewController.m
@@ -86,15 +86,9 @@ - (id)init
}
- NSLog(@"Init");
return self;
}
-- (void)dealloc
-{
- NSLog(@"Dealloc");
-}
-
//////////////////////////////////////////////////////////////
#pragma mark controller events
//////////////////////////////////////////////////////////////
@@ -142,23 +136,19 @@ - (void)loadView
UIBarButtonItem *doneButton = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:UIBarButtonItemStyleDone target:self action:@selector(optionsDoneAction)];
optionsController.navigationItem.rightBarButtonItem = doneButton;
}
-
- NSLog(@"loadview");
}
- (void)viewDidLoad
{
[super viewDidLoad];
_gmGridView.mainSuperView = self.navigationController.view; //[UIApplication sharedApplication].keyWindow.rootViewController.view;
- NSLog(@"Viewdidload");
}
- (void)viewDidUnload
{
[super viewDidUnload];
_gmGridView = nil;
- NSLog(@"View did unload");
}
- (void)viewDidAppear:(BOOL)animated
{
@@ -255,7 +245,7 @@ - (void)GMGridView:(GMGridView *)gridView deleteItemAtIndex:(NSInteger)index
- (void)GMGridView:(GMGridView *)gridView didTapOnItemAtIndex:(NSInteger)position
{
- NSLog(@"DId tap at index %d", position);
+ NSLog(@"Did tap at index %d", position);
}

0 comments on commit 22be7b7

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