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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>My Landing Page</title> | |
<!-- Bootstrap CSS --> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"> |
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
class StartViewController : UIViewController { | |
private var contextQueue_:dispatch_queue_t? = nil | |
private var originalImage:UIImage? | |
@IBOutlet weak var imageView: UIImageView! | |
@IBAction func convert(sender: AnyObject) { | |
applyFilter() | |
} |
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
func application(application: UIApplication, handleWatchKitExtensionRequest userInfo: [NSObject : AnyObject]?, reply: (([NSObject : AnyObject]!) -> Void)!) { | |
// Begin background task, recommended by apple so your app doesnt get terminated by the system for taking too long to complete the network task | |
var identifier : UIBackgroundTaskIdentifier! | |
identifier = UIApplication.sharedApplication().beginBackgroundTaskWithName("Hello", expirationHandler: { () -> Void in | |
UIApplication.sharedApplication().endBackgroundTask(identifier) | |
identifier = UIBackgroundTaskInvalid | |
}) |
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
// | |
// InterfaceController.swift | |
// AsnycCall WatchKit Extension | |
// | |
// Created by Fabian Nöthe on 05.04.15. | |
// Copyright (c) 2015. All rights reserved. | |
// | |
import WatchKit |
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 | |
@objc(InsetBlurModalSeque) class InsetBlurModalSeque: UIStoryboardSegue { | |
override func perform() { | |
let sourceViewController = self.sourceViewController as UIViewController | |
let destinationViewController = self.destinationViewController as UIViewController | |
// Make sure the background is ransparent | |
destinationViewController.view.backgroundColor = UIColor.clearColor() |