Updating current feed's title on rename.

This commit is contained in:
Samuel Clay 2015-05-19 10:55:26 -07:00
parent bcdd9c6d2b
commit f5c065ccf2
5 changed files with 9 additions and 7 deletions

View file

@ -1947,8 +1947,10 @@ didEndSwipingSwipingWithState:(MCSwipeTableViewCellState)state
[appDelegate renameFeed:newTitle];
}
[self.view setNeedsDisplay];
self.navigationItem.titleView = [appDelegate makeFeedTitle:storiesCollection.activeFeed];
[self.navigationController.view setNeedsDisplay];
[MBProgressHUD hideHUDForView:self.view animated:YES];
}];
[request setTimeOutSeconds:30];
[request setTag:[[storiesCollection.activeFeed objectForKey:@"id"] intValue]];

View file

@ -151,7 +151,7 @@
velocity = [(UIPanGestureRecognizer *)gestureRecognizer velocityInView:self.view];
}
if (self.webView.scrollView.contentOffset.x == 0 &&
velocity.x > 0 && abs(velocity.y) < 200) {
velocity.x > 0 && fabs(velocity.y) < 200) {
return NO;
}
@ -164,7 +164,7 @@
velocity = [(UIPanGestureRecognizer *)gestureRecognizer velocityInView:self.view];
}
if (self.webView.scrollView.contentOffset.x == 0 &&
velocity.x > 0 && abs(velocity.y) < 200) {
velocity.x > 0 && fabs(velocity.y) < 200) {
return YES;
}
return NO;
@ -184,7 +184,7 @@
velocity = [(UIPanGestureRecognizer *)gestureRecognizer velocityInView:self.view];
}
if (self.webView.scrollView.contentOffset.x == 0 &&
velocity.x > 0 && abs(velocity.y) < 200) {
velocity.x > 0 && fabs(velocity.y) < 200) {
return YES;
}
return NO;

View file

@ -215,7 +215,7 @@
UIImage *locationIcon = [UIImage imageNamed:@"7-location-place.png"];
UIImageView *locationIconView = [[UIImageView alloc] initWithImage:locationIcon];
locationIconView.Frame = CGRectMake(kTopBadgeTextXCoordinate,
locationIconView.frame = CGRectMake(kTopBadgeTextXCoordinate,
yCoordinatePointer + 2,
16,
16);

View file

@ -5,7 +5,7 @@
#import <SystemConfiguration/SystemConfiguration.h>
#import <MobileCoreServices/MobileCoreServices.h>
#define DEBUG 1
//#define DEBUG 1
//#define PROD_DEBUG 1
#ifdef DEBUG

View file

@ -224,7 +224,7 @@ secondStateIconName:(NSString *)secondIconName
UIPanGestureRecognizer *g = (UIPanGestureRecognizer *)gestureRecognizer;
CGPoint point = [g velocityInView:self];
if (fabsf(point.x) > fabsf(point.y) ) {
if (fabs(point.x) > fabs(point.y) ) {
// We notify the delegate that we just started dragging
if ([_delegate respondsToSelector:@selector(swipeTableViewCellDidStartSwiping:)]) {
@ -297,7 +297,7 @@ secondStateIconName:(NSString *)secondIconName
if (percentage >= 0 && percentage < kMCStop1)
alpha = percentage / kMCStop1;
else if (percentage < 0 && percentage > -kMCStop1)
alpha = fabsf(percentage / kMCStop1);
alpha = fabs(percentage / kMCStop1);
else alpha = 1.0;
return alpha;