{"action":"created","issue":{"url":"https://api.github.com/repos/sunnyxx/XXNibBridge/issues/13","labels_url":"https://api.github.com/repos/sunnyxx/XXNibBridge/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/sunnyxx/XXNibBridge/issues/13/comments","events_url":"https://api.github.com/repos/sunnyxx/XXNibBridge/issues/13/events","html_url":"https://github.com/sunnyxx/XXNibBridge/issues/13","id":112060405,"number":13,"title":"视图与要嵌套的Controller相同前缀造成闪退","user":{"login":"zj159963","id":9990940,"avatar_url":"https://avatars.githubusercontent.com/u/9990940?v=3","gravatar_id":"","url":"https://api.github.com/users/zj159963","html_url":"https://github.com/zj159963","followers_url":"https://api.github.com/users/zj159963/followers","following_url":"https://api.github.com/users/zj159963/following{/other_user}","gists_url":"https://api.github.com/users/zj159963/gists{/gist_id}","starred_url":"https://api.github.com/users/zj159963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zj159963/subscriptions","organizations_url":"https://api.github.com/users/zj159963/orgs","repos_url":"https://api.github.com/users/zj159963/repos","events_url":"https://api.github.com/users/zj159963/events{/privacy}","received_events_url":"https://api.github.com/users/zj159963/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-19T02:32:07Z","updated_at":"2015-10-19T10:40:20Z","closed_at":null,"body":"下载了一份demo，在测试的时候出现了这样一个问题，大致的情况是这样：\r\n1、自定义一个视图叫做 XXView；\r\n2、关联的Xib文件叫做XXView.xib；\r\n3、在storyboard中添加XXView作为placeholder，一起正常，没有问题；\r\n但是出现了一个这样的情况：\r\n4、由于一些其他原因，测试一下navigationController，于是， 选中ViewController， embed in NavigationController， 新建一个controller， 名字叫做XXViewController，并没有使用storyboard；\r\n5、在viewController中push这个XXViewController的时候， 闪退， 报错如下：\r\n-[UIViewController _loadViewFromNibNamed:bundle:] loaded the \"XXView\" nib but the view outlet was not set.'\r\n猜测是因为XXView和 XXViewController拥有同样的前缀造成，于是将其改为SBViewController， 一切正常。"},"comment":{"url":"https://api.github.com/repos/sunnyxx/XXNibBridge/issues/comments/149180856","html_url":"https://github.com/sunnyxx/XXNibBridge/issues/13#issuecomment-149180856","issue_url":"https://api.github.com/repos/sunnyxx/XXNibBridge/issues/13","id":149180856,"user":{"login":"sunnyxx","id":2410234,"avatar_url":"https://avatars.githubusercontent.com/u/2410234?v=3","gravatar_id":"","url":"https://api.github.com/users/sunnyxx","html_url":"https://github.com/sunnyxx","followers_url":"https://api.github.com/users/sunnyxx/followers","following_url":"https://api.github.com/users/sunnyxx/following{/other_user}","gists_url":"https://api.github.com/users/sunnyxx/gists{/gist_id}","starred_url":"https://api.github.com/users/sunnyxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunnyxx/subscriptions","organizations_url":"https://api.github.com/users/sunnyxx/orgs","repos_url":"https://api.github.com/users/sunnyxx/repos","events_url":"https://api.github.com/users/sunnyxx/events{/privacy}","received_events_url":"https://api.github.com/users/sunnyxx/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T10:40:20Z","updated_at":"2015-10-19T10:40:20Z","body":"我感觉和前缀没关系，新建的 XXViewController 有个 XXView 的 IBOutlet 没清理干净吧？"}}