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
| if segue.identifier == "ShowDetail” { | |
| // 処理 | |
| } |
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
| var date_string: String = "2014-12-01 10:00:00" | |
| var date_formatter: NSDateFormatter = NSDateFormatter() | |
| date_formatter.locale = NSLocale(localeIdentifier: "ja") | |
| date_formatter.dateFormat = "yyyy/MM/dd HH:mm:ss" | |
| date_formatter.dateFromString(date_string) |
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 UIKit | |
| public class UIPlaceHolderTextView: UITextView { | |
| lazy var placeHolderLabel:UILabel = UILabel() | |
| var placeHolderColor:UIColor = UIColor.lightGrayColor() | |
| var placeHolder:NSString = "" | |
| required public init(coder aDecoder: NSCoder) { | |
| super.init(coder: aDecoder) |
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
| echo body | mail -s "subject" -r 'from@example.com' 'to@example.com' |
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 UIKit | |
| class SecondViewController: UIViewController { | |
| @IBOutlet weak var BackButton: UIButton! | |
| @IBOutlet weak var ToThirdViewBbutton: UIButton! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() |
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 UIKit | |
| // 文字列 から NSDate | |
| var date_string: String = "1996-3-15 10:11:00" | |
| var date_formatter: NSDateFormatter = NSDateFormatter() | |
| date_formatter.locale = NSLocale(localeIdentifier: "ja") | |
| date_formatter.dateFormat = "yyyy/MM/dd HH:mm:ss" | |
| var change_date:NSDate = date_formatter.dateFromString(date_string)! |
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 UIKit | |
| class ViewController: UIViewController, UIToolbarDelegate { | |
| @IBOutlet weak var textField: UITextField! | |
| //var textField: UITextField! | |
| var toolBar:UIToolbar! | |
| var myDatePicker: UIDatePicker! | |
| override func viewDidLoad() { |
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
| @UIApplicationMain | |
| class AppDelegate: UIResponder, UIApplicationDelegate { | |
| var window: UIWindow? | |
| func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
| // Override point for customization after application launch. | |
| let splitViewController = self.window!.rootViewController as ViewController |
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 UIKit | |
| class Memo:NSObject { | |
| var title = "無題" | |
| var created_at = NSDate() | |
| init(title:String) { | |
| self.title = title | |
| } | |
| } |
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
| ButtonShare.addTarget(self, action: "share_action:", forControlEvents: .TouchUpInside) |
OlderNewer