import UIKit
breakpointでシュミレーターが止まりますコードが間違っていますでしょうか?
@IBOutlet weak var image: UIImageView!の箇所でbreakpointと出ます。
class ViewController: UIViewController {
@IBOutlet weak var image: UIImageView! @IBAction func show(sender: UIBarButtonItem) { let controller = UIActivityViewController(activityItems: [image.image!], applicationActivities: nil) self.presentViewController(controller,animated: true, completion: nil) } 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. }
}
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。