Skip to content

Commit

Permalink
added images for menu friends
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksan committed May 3, 2014
1 parent ee5cbd9 commit 08b0b25
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Trovebox/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ extern NSString * const kAccountDetailsPermission;
#define GOOGLE_ANALYTICS_ENABLED

// a lot of logs, don't use in production env.
//#define DEVELOPMENT_ENABLED
#define DEVELOPMENT_ENABLED

// log the return information from the server
//#define DEVELOPMENT_ENABLED_JSON_RETURN
#define DEVELOPMENT_ENABLED_JSON_RETURN

// if set developer can have credentials printed in the console
//#define DEVELOPMENT_CREDENTIALS_LOG_ENABLED
#define DEVELOPMENT_CREDENTIALS_LOG_ENABLED

// to transform color from hex to RBG
//RGB color macro
Expand Down
8 changes: 6 additions & 2 deletions Trovebox/FriendDetailsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,14 @@ - (void)viewDidUnload {
}

- (IBAction)showPhotos:(id)sender {

#ifdef DEVELOPMENT_ENABLED
NSLog(@"Show photos");
#endif
}

- (IBAction)showAlbums:(id)sender {

#ifdef DEVELOPMENT_ENABLED
NSLog(@"Show albums");
#endif
}
@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "menu-friends-selected.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "[email protected]"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions Trovebox/Images.xcassets/menu-friends.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "112-group.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "[email protected]"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
4 changes: 0 additions & 4 deletions Trovebox/JobUploaderController.m
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ -(void)loadPhotosToDatabase:(ALAssetsGroup *) group {
__block int assetsNotUploaded = 0;

@autoreleasepool {
#ifdef DEVELOPMENT_ENABLED
NSLog(@"numberOfAssets %i", assetsNumber);
#endif

[group enumerateAssetsUsingBlock:^(ALAsset *result, NSUInteger index, BOOL *stop)
{
if(result == nil)
Expand Down
2 changes: 1 addition & 1 deletion Trovebox/MenuViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
return cell;
}else if ( (row == 6 && !groupUser) || (row == 5 && groupUser) ){
// Friends
MenuTableViewCell *cell = [self getDefaultUITableViewCell:tableView image:@"menu-upload.png" imageSelected:@"menu-upload-selected.png"];
MenuTableViewCell *cell = [self getDefaultUITableViewCell:tableView image:@"menu-friends.png" imageSelected:@"menu-friends-selected.png"];
cell.label.text = NSLocalizedString(@"Friends", @"Menu - title for Friends");
return cell;
}else if ( (row == 7 && !groupUser) || (row == 6 && groupUser) ){
Expand Down

0 comments on commit 08b0b25

Please sign in to comment.