Skip to content

Instantly share code, notes, and snippets.

@externvoid
Created June 1, 2016 07:38
Show Gist options
  • Select an option

  • Save externvoid/f32347b7b396ebb5a3b3837e9cd0233b to your computer and use it in GitHub Desktop.

Select an option

Save externvoid/f32347b7b396ebb5a3b3837e9cd0233b to your computer and use it in GitHub Desktop.
FilesOwnerってナンダァ⁉️
let vc = ParamViewController(nibName : "ParamViewController", bundle : nil)
@externvoid

externvoid commented Jun 1, 2016 •

Copy link
Copy Markdown
Author

たとえば、画面遷移をさせる時に遷移先へはこんな感じで遷移させるよねぇ。

self.navigationController?.pushViewController(vc, animated: true)

vcが遷移先なんだけど、
こいつを遷移前に作っとかないと遷移はできないので、

let vc = ParamViewController(nibName : "ParamViewController", bundle : nil)

こんな感じでParamViewController.xibを指定するけど、このxibにはParamViewController.swiftっているSource Fileを教えてやらないと、NSObjectのままだと、まずいかなぁーと思いきや!
全然問題無かった。FilesOwnerってなんだぁ?

816
xibにボタンを追加して、そのボタンアクションをParamViewControllerにつなげるときに
クラスが正しくないとつながらないでしょ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment