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
// Prasanna Gopalakrishnan | |
// Based on https://gist.github.com/douglashill/50728432881ef37e8b49f2a5917f462d that supports a single section | |
import UIKit | |
/// A table view that allows navigation and selection using a hardware keyboard. | |
/// Supports multiple sections. | |
class KeyboardTableView: UITableView { | |
override var canBecomeFirstResponder: Bool { |
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 | |
@UIApplicationMain | |
class DispatchDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow?, appDelegate: AppDelegate! | |
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool { | |
var result = true | |
if isTesting() { | |
window = UIWindow(frame: UIScreen.mainScreen().bounds) |