Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

various ui updates

  • Loading branch information...
commit 46a5f659825ae6fc0130c08b147db6145c75dd5b 1 parent e33975d
@trivektor authored
View
BIN  Gitos-iPad.xcodeproj/project.xcworkspace/xcuserdata/trivuong.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown
View
1  Gitos-iPad/Cells/GistDetailsCell.m
@@ -38,6 +38,7 @@ - (void)renderForIndexPath:(NSIndexPath *)indexPath
[self.fieldLabel setText:@"Comments"];
[self.fieldValue setText:[NSString stringWithFormat:@"%i", [self.gist getNumberOfComments]]];
}
+ self.backgroundColor = [UIColor whiteColor];
}
@end
View
1  Gitos-iPad/Cells/RepoDetailsCell.m
@@ -73,6 +73,7 @@ - (void)renderForIndexPath:(NSIndexPath *)indexPath
self.fieldLabel.text = fieldLabelText;
self.fieldValue.text = fieldValueText;
self.selectionStyle = UITableViewCellSelectionStyleNone;
+ self.backgroundColor = [UIColor whiteColor];
}
@end
View
8 Gitos-iPad/Controllers/GistViewController.m
@@ -71,8 +71,6 @@ - (void)registerNib
[table setSeparatorColor:[UIColor colorWithRed:206/255.0 green:206/255.0 blue:206/255.0 alpha:0.8]];
[table setScrollEnabled:NO];
}
-
- [self.view setBackgroundColor:[UIColor colorWithRed:229/255.0 green:229/255.0 blue:229/255.0 alpha:1.0]];
}
- (void)getGistStats
@@ -151,6 +149,7 @@ - (UITableViewCell *)cellForDetailsTableAtIndexPath:(NSIndexPath *)indexPath
[cell setGist:self.gist];
[cell renderForIndexPath:indexPath];
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
+ [cell setBackgroundColor:[UIColor whiteColor]];
return cell;
}
@@ -166,8 +165,9 @@ - (UITableViewCell *)cellForBranchesTableAtIndexPath:(NSIndexPath *)indexPath
}
GistFile *file = [self.files objectAtIndex:indexPath.row];
- cell.textLabel.text = [file getName];
- cell.textLabel.font = [UIFont fontWithName:@"Arial" size:12.0];
+ cell.textLabel.text = [file getName];
+ cell.textLabel.font = [UIFont fontWithName:@"Arial" size:12.0];
+ cell.backgroundColor = [UIColor whiteColor];
return cell;
}
View
4 Gitos-iPad/Controllers/MasterViewController.m
@@ -83,7 +83,9 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
if (indexPath.row == 0) {
[self.delegate didSelectViewController:[[NewsfeedViewController alloc] init]];
} else if (indexPath.row == 1) {
- [self.delegate didSelectViewController:[[ReposViewController alloc] init]];
+ ReposViewController *reposController = [[ReposViewController alloc] init];
+ reposController.hideBackButton = YES;
+ [self.delegate didSelectViewController:reposController];
} else if (indexPath.row == 2) {
[self.delegate didSelectViewController:[[StarredViewController alloc] init]];
} else if (indexPath.row == 3) {
View
1  Gitos-iPad/Controllers/ProfileViewController.m
@@ -194,6 +194,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
} else if (indexPath.row == 6) {
ReposViewController *reposController = [[ReposViewController alloc] init];
reposController.user = self.user;
+ reposController.hideBackButton = NO;
[self.navigationController pushViewController:reposController animated:YES];
} else if (indexPath.row == 7) {
GistsViewController *gistsController = [[GistsViewController alloc] init];
View
9 Gitos-iPad/Controllers/RepoViewController.m
@@ -76,9 +76,7 @@ - (void)registerNib
{
UINib *repoDetailsCellNib = [UINib nibWithNibName:@"RepoDetailsCell" bundle:nil];
[detailsTable registerNib:repoDetailsCellNib forCellReuseIdentifier:@"RepoDetailsCell"];
-
- [self.view setBackgroundColor:[UIColor colorWithRed:229/255.0 green:229/255.0 blue:229/255.0 alpha:1.0]];
-
+
NSArray *tables = [[NSArray alloc] initWithObjects:detailsTable, branchesTable, nil];
UITableView *table;
@@ -143,8 +141,9 @@ - (UITableViewCell *)cellForBranchesTableAtIndexPath:(NSIndexPath *)indexPath
Branch *branch = [self.repoBranches objectAtIndex:indexPath.row];
- cell.textLabel.font = [UIFont fontWithName:@"Arial" size:14.0];
- cell.textLabel.text = [branch getName];
+ cell.textLabel.font = [UIFont fontWithName:@"Arial" size:14.0];
+ cell.textLabel.text = [branch getName];
+ cell.backgroundColor = [UIColor whiteColor];
return cell;
}
View
1  Gitos-iPad/Controllers/ReposViewController.h
@@ -16,6 +16,7 @@
@property (nonatomic, weak) IBOutlet UITableView *reposTable;
@property (nonatomic, strong) NSMutableArray *repos;
@property (nonatomic, strong) MBProgressHUD *hud;
+@property (nonatomic) Boolean hideBackButton;
- (void)registerNib;
- (void)getUserInfoAndRepos;
View
8 Gitos-iPad/Controllers/ReposViewController.m
@@ -7,9 +7,6 @@
//
#import "ReposViewController.h"
-#import "AFHTTPClient.h"
-#import "AFHTTPRequestOperation.h"
-#import "SSKeychain.h"
#import "RepoCell.h"
#import "Repo.h"
#import "RepoViewController.h"
@@ -46,7 +43,9 @@ - (void)viewDidLoad
- (void)viewWillAppear:(BOOL)animated
{
- self.navigationItem.hidesBackButton = YES;
+ if (self.hideBackButton) {
+ self.navigationItem.hidesBackButton = YES;
+ }
}
- (void)didReceiveMemoryWarning
@@ -65,7 +64,6 @@ - (void)registerNib
[reposTable setBackgroundView:nil];
[reposTable setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
[reposTable setSeparatorColor:[UIColor colorWithRed:206/255.0 green:206/255.0 blue:206/255.0 alpha:0.8]];
- [self.view setBackgroundColor:[UIColor colorWithRed:229/255.0 green:229/255.0 blue:229/255.0 alpha:1.0]];
}
- (void)getUserInfoAndRepos
Please sign in to comment.
Something went wrong with that request. Please try again.