This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface RACSignal (ViewAnimations) | |
- (RACSignal *)animateWithDuration:(NSTimeInterval)duration; | |
- (RACSignal *)animateWithDuration:(NSTimeInterval)duration usingSpringWithDamping:(CGFloat)dampingRatio initialSpringVelocity:(CGFloat)velocity; | |
- (RACSignal *)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay usingSpringWithDamping:(CGFloat)dampingRatio initialSpringVelocity:(CGFloat)velocity; | |
- (RACSignal *)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay usingSpringWithDamping:(CGFloat)dampingRatio initialSpringVelocity:(CGFloat)velocity options:(UIViewAnimationOptions)options; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_currentAccount = | |
[[RACSignal | |
combineLatest:@[_loadStateEvents, | |
[_selectedAccountIDSignal startWith:nil], | |
[_additionalAccountsSignal startWith:nil]] | |
reduce:^id (STAccountManagerLoadStateEvent *event, NSNumber *selectedID, NSArray *additionalAccounts) { | |
@strongify(self); | |
switch (event.state) { | |
case kSTAccountLoadStateLoaded: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: not found (404)" UserInfo=0x1740ff180 {com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x170a30260> { URL: https://api.stagebloc.com/v1/account/5212/photo } { status code: 404, headers { | |
"Cache-Control" = "no-cache"; | |
"Content-Length" = 130; | |
"Content-Type" = "application/json"; | |
Date = "Tue, 20 Jan 2015 18:15:31 GMT"; | |
Server = "Apache/2.2.22 (Ubuntu)"; | |
Vary = Authorization; | |
"X-Powered-By" = "PHP/5.4.36-1+deb.sury.org~precise+2"; | |
} }, SBAPIErrorResponseObjectKey=<CFBasicHash 0x176269c80 [0x194a32c80]>{type = immutable dict, count = 2, | |
entries => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// CollectionViewFlowLayout.swift | |
// Github | |
// | |
// Created by Mark Glagola on 10/30/14. | |
// Copyright (c) 2014 Mark Glagola. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
//greenish-blueish | |
<color name="flat_turquoise">#1abc9c</color> | |
<color name="flat_green_sea">#16a085</color> | |
//greenish | |
<color name="flat_emerald">#2ecc71</color> | |
<color name="flat_nephritis">#27ae60</color> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface BareTabBarController : UIViewController | |
extern CGFloat const kBareDefaultSelectedIndexAnimationDuration; | |
@property (nonatomic, copy) NSArray *viewControllers; | |
@property (nonatomic, weak) UIViewController *selectedViewController; | |
@property (nonatomic) NSUInteger selectedIndex; | |
@property (nonatomic, readonly) CGFloat padding; //set in setViewControllers:padding: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//change SomeFRCControllerClass to whatever | |
@interface SomeControllerClass : UIViewController <UITableViewDataSource, NSFetchedResultsControllerDelegate> | |
@property (nonatomic) NSFetchedResultsController *fetchedResultsController; | |
@property (nonatomic) UITableView *tableView; | |
@end | |
@implementation SomeFRCControllerClass //replace with desired name |