xcode初心者です。
swiftでボタンをクリックしたら、自分のtwitterアカウントに現在時刻をツイートしてくれるようなアプリを作りたいと思っています。
とりあえず Main.Storyboardでボタンを配置しました。
このボタンを押したら時刻をツイートしてくれるようなコードの書き方わかりません。
どうぞ、ご教示頂きますよう、宜しくお願い致します。
// // ViewController.swift // tweet_button // // Created by 前原健二 on 2016/03/05. // Copyright © 2016年 前原健二. All rights reserved. // import UIKit import Social class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } @IBAction func tweetButton(sender: AnyObject) { label001.text = "touched!" } @IBOutlet weak var label001: UILabel! }
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/03/05 08:41
2016/03/05 09:57