Skip to content

Commit

Permalink
Cleaned up home screen refreshing of briefs. Added scaled down slider…
Browse files Browse the repository at this point in the history
… bar, without backgroud. No text status either.
  • Loading branch information
capttaco committed May 4, 2010
1 parent 4b53cd7 commit 6e5614e
Show file tree
Hide file tree
Showing 4 changed files with 564 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Briefs.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@
D4F21571118E99790041F87C /* gettingstarted.html in Resources */ = {isa = PBXBuildFile; fileRef = D4F21570118E99790041F87C /* gettingstarted.html */; };
D4F21580118E9A760041F87C /* share.html in Resources */ = {isa = PBXBuildFile; fileRef = D4F2157E118E9A760041F87C /* share.html */; };
D4F21581118E9A760041F87C /* faq.html in Resources */ = {isa = PBXBuildFile; fileRef = D4F2157F118E9A760041F87C /* faq.html */; };
D4F21597118FA7530041F87C /* CellRefreshLoad.xib in Resources */ = {isa = PBXBuildFile; fileRef = D4F21596118FA7530041F87C /* CellRefreshLoad.xib */; };
D4F215D3118FADA80041F87C /* pop-slider-bg-gray.png in Resources */ = {isa = PBXBuildFile; fileRef = D4F215D2118FADA80041F87C /* pop-slider-bg-gray.png */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -364,6 +366,8 @@
D4F21570118E99790041F87C /* gettingstarted.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = gettingstarted.html; path = html/gettingstarted.html; sourceTree = "<group>"; };
D4F2157E118E9A760041F87C /* share.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = share.html; path = html/share.html; sourceTree = "<group>"; };
D4F2157F118E9A760041F87C /* faq.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = faq.html; path = html/faq.html; sourceTree = "<group>"; };
D4F21596118FA7530041F87C /* CellRefreshLoad.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = CellRefreshLoad.xib; path = Classes/CellRefreshLoad.xib; sourceTree = "<group>"; };
D4F215D2118FADA80041F87C /* pop-slider-bg-gray.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "pop-slider-bg-gray.png"; path = "images/bg/pop-slider-bg-gray.png"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -567,6 +571,7 @@
D43CE16C114F0DC800DA07D5 /* backgrounds */ = {
isa = PBXGroup;
children = (
D4F215D2118FADA80041F87C /* pop-slider-bg-gray.png */,
D4F210D2118BD5E20041F87C /* root-menu-bg.png */,
D4A459D81172DCDD00D9C1DF /* cell-bottom-sel.png */,
D4A459D91172DCDD00D9C1DF /* cell-top-sel.png */,
Expand Down Expand Up @@ -759,6 +764,7 @@
D4A0C34F116D91930088E5F6 /* loading views */ = {
isa = PBXGroup;
children = (
D4F21596118FA7530041F87C /* CellRefreshLoad.xib */,
D4D4BC38117255A2009D70D0 /* PreviewRefreshLoad.xib */,
D4A0C33D116D84360088E5F6 /* FullPageRemoteLoad.xib */,
D4A0C261116AD85C0088E5F6 /* BFLoadingViewController.xib */,
Expand Down Expand Up @@ -1057,6 +1063,8 @@
D4F21571118E99790041F87C /* gettingstarted.html in Resources */,
D4F21580118E9A760041F87C /* share.html in Resources */,
D4F21581118E9A760041F87C /* faq.html in Resources */,
D4F21597118FA7530041F87C /* CellRefreshLoad.xib in Resources */,
D4F215D3118FADA80041F87C /* pop-slider-bg-gray.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
15 changes: 13 additions & 2 deletions Classes/BFRefreshBriefCellController.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,21 @@ - (IBAction)updateBriefData

// setup the loading controller
NSString *location = self.brief.fromURL;
BFLoadingViewController *loadingController = [[BFLoadingViewController alloc] initWithNibName:nil bundle:nil];
loadingController.view.frame = CGRectMake(10.0f, 0, 300.0f, 50.0f);
BFLoadingViewController *loadingController = [[BFLoadingViewController alloc] initWithNibName:@"CellRefreshLoad" bundle:nil];
loadingController.view.frame = CGRectOffset(loadingController.view.frame, 60.0f, 5.0f);

loadingController.view.alpha = 0.0;
[cell addSubview:[loadingController view]];
[UIView beginAnimations:@"fade-in refresh view" context:nil];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
[UIView setAnimationDuration:0.5f];

name.alpha = 0.0f;
desc.alpha = 0.0f;
[(UIButton *)cell.accessoryView setEnabled:NO];

loadingController.view.alpha = 1.0f;

[UIView commitAnimations];

[loadingController setDelegate:self];
Expand All @@ -74,7 +80,12 @@ - (void)beginLoadingFadeOutAnimation:(id)loading
[UIView setAnimationDuration:0.5f];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(loadingFadeDidStop:finished:context:)];

name.alpha = 1.0f;
desc.alpha = 1.0f;
controller.view.alpha = 0.0f;
[(UIButton *)cell.accessoryView setEnabled:YES];

[UIView commitAnimations];
}

Expand Down
Loading

0 comments on commit 6e5614e

Please sign in to comment.