This file contains hidden or 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
rules: | |
- | |
target: OrderId | |
type: Calculation | |
input_type: Integer | |
output_type: Integer | |
source: Order Number | |
- | |
target: OrderDate | |
type: Calculation |
This file contains hidden or 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
import Foundation | |
import UIKit | |
extension UIImageView { | |
func setImageWithUrlString(urlString : String, placeholderImageFileName : String?){ | |
if let placeholderImageFileName = placeholderImageFileName { | |
self.setImageOnMainThread(UIImage(named: placeholderImageFileName)) | |
} | |
let url = NSURL(string: urlString)! | |
let request = NSMutableURLRequest(URL: url, cachePolicy: .ReturnCacheDataElseLoad, timeoutInterval: 30.0) |