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
import Ember from 'ember'; | |
import UserValidations from 'twiddle/validations/user'; | |
export default Ember.Controller.extend({ | |
UserValidations, | |
actions: { | |
submit(model) { | |
console.log('submit', model) | |
model.save() |
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
import UIKit | |
extension UIViewController { | |
@IBAction func dismiss(sender: AnyObject?) { | |
if let nc = self.navigationController { | |
nc.popViewControllerAnimated(true) | |
} else { | |
self.dismissViewControllerAnimated(true, completion: nil) | |
} | |
} |
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
import UIKit | |
import WebKit | |
import LoadingBarKit | |
class ViewController: UIViewController { | |
@IBOutlet var loadingBar: LoadingBar! | |
var webView: WKWebView? | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
self.webView?.addObserver(self, forKeyPath: "estimatedProgress", options: NSKeyValueObservingOptions.New, context: nil) |
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
// | |
// PAMFeedTableViewController.m | |
// OneStreet | |
// | |
// Created by Thomas Sunde Nielsen on 20.12.13. | |
// Copyright (c) 2013 PAM. All rights reserved. | |
// | |
#import "PAMFeedTableViewController.h" |