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
// | |
// Color+Utils.swift | |
// taskmanager | |
// | |
// Created by Mike on 2014-07-30. | |
// Copyright (c) 2014 Mike. 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
extension UICollectionViewController: NSFetchedResultsControllerDelegate { | |
private struct AssociatedKeys { | |
static var operationsArray = "operationsArrayKey" | |
} | |
var fetchedResultsProcessingOperations: [NSBlockOperation]? { | |
get { | |
return objc_getAssociatedObject(self, &AssociatedKeys.operationsArray) as? [NSBlockOperation] |
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
@IBDesignable | |
class UIPaddedLabel:UILabel { | |
@IBInspectable var topPadding:CGFloat = 0 { | |
didSet { | |
updatePadding() | |
} | |
} | |
@IBInspectable var leftPadding:CGFloat = 0 { | |
didSet { |