//
//  StartViewController.swift
//  TaptheButton
//
//  Created by Chenglin Liu on 3/16/16.
//  Copyright 漏 2016 Chenglin Liu. All rights reserved.
//

import UIKit

class StartViewController: UIViewController {

    @IBOutlet weak var startButton: UIButton!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        startButton.layer.cornerRadius = startButton.frame.width/2
    }

//TODO: add a share button
    @IBAction func shareTapped(sender: AnyObject) {
        displayActionSheet()
    }
    func displayActionSheet(){
        let activityViewController = UIActivityViewController(activityItems: ["my score:"], applicationActivities: nil)
        presentViewController(activityViewController, animated: true, completion: nil)
    }
}
// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com