Skip to content

Commit

Permalink
refatorando #3
Browse files Browse the repository at this point in the history
  • Loading branch information
renanvs committed Mar 4, 2014
1 parent f662df6 commit 86455a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ -(void)tabBarController:(UITabBarController *)tabBarController didSelectViewCont
PaleoNavigationController *navCont = (PaleoNavigationController*)viewController;
if (navCont == favoritesPaleoNavigationController) {
[[NSNotificationCenter defaultCenter] postNotificationName:TabBarFavoriteSelected object:nil];
}else if (navCont == categoriesPaleoNavigationController){
[[NSNotificationCenter defaultCenter] postNotificationName:TabBarFoodSelected object:nil];
}
[[NSNotificationCenter defaultCenter] postNotificationName:TabBarSelected object:nil];
}
Expand All @@ -88,28 +90,4 @@ -(void)addIcons{
[tabItem setTitle:[itemLabel objectAtIndex:[itens indexOfObject:tabItem]]];
}
}

//-(NSUInteger)supportedInterfaceOrientations{
// UIViewController *vc = [self selectedViewController];
//
// if (vc == searchPaleoNavigationController) {
// return UIInterfaceOrientationMaskPortraitUpsideDown;
// }
// return UIInterfaceOrientationMaskAll;
//}
//
//-(BOOL)shouldAutorotate{
// UIViewController *vc = [self selectedViewController];
//
// if (vc == searchPaleoNavigationController) {
// return NO;
// }
//
// return YES;
//}
//
//-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
// return UIInterfaceOrientationPortrait;
//}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,6 @@ -(void)removeItemFromTableViewAtIndex:(NSIndexPath*)index{
}else{
[self deleteRowsAtIndexPaths:indexPathList withRowAnimation:UITableViewRowAnimationLeft];
}




}

@end
1 change: 1 addition & 0 deletions PaleoProject/PaleoProject/PaleoDefines/PaleoDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
//Nome das Notifications
#define TabBarFavoriteSelected @"TabBarFavoriteSelected"
#define TabBarSelected @"TabBarSelected"
#define TabBarFoodSelected @"TabBarFoodSelected"

//Titulo do BaseBar
#define BaseNameSettings @"Ajustes"
Expand Down

0 comments on commit 86455a7

Please sign in to comment.