{"action":"closed","issue":{"url":"https://api.github.com/repos/xmartlabs/XLForm/issues/300","labels_url":"https://api.github.com/repos/xmartlabs/XLForm/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/xmartlabs/XLForm/issues/300/comments","events_url":"https://api.github.com/repos/xmartlabs/XLForm/issues/300/events","html_url":"https://github.com/xmartlabs/XLForm/issues/300","id":66287067,"number":300,"title":"Problem adding a custom row type from XIB with Swift","user":{"login":"tobinharris","id":25578,"avatar_url":"https://avatars.githubusercontent.com/u/25578?v=3","gravatar_id":"","url":"https://api.github.com/users/tobinharris","html_url":"https://github.com/tobinharris","followers_url":"https://api.github.com/users/tobinharris/followers","following_url":"https://api.github.com/users/tobinharris/following{/other_user}","gists_url":"https://api.github.com/users/tobinharris/gists{/gist_id}","starred_url":"https://api.github.com/users/tobinharris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobinharris/subscriptions","organizations_url":"https://api.github.com/users/tobinharris/orgs","repos_url":"https://api.github.com/users/tobinharris/repos","events_url":"https://api.github.com/users/tobinharris/events{/privacy}","received_events_url":"https://api.github.com/users/tobinharris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-04T07:41:45Z","updated_at":"2015-04-18T06:37:15Z","closed_at":"2015-04-18T06:37:15Z","body":"Hi folks\r\n\r\nI've copied the example but can't get my custom row type to work when using a NIB. The row appears empty.\r\n\r\nI have a nib called `MyCustomRowType.xib` and have created a `XLFormBaseCell` subclass in a file called`MyCustomRowType.swift`\r\n\r\nI've registered the type using this code\r\n\r\n    XLFormViewController.cellClassesForRowDescriptorTypes().setObject(MyCustomRowType.self, forKey:MyCustomRowType.rowTypeName)\r\n\r\nIn the NIB, the File's Owner is set to `MyCustomRowType` and the nib contains a single `UITableViewCell`.\r\n\r\nThe only thing that works is if I do this in my subclass of `XLFormBaseCell`:\r\n\r\n    override func configure() {\r\n        super.configure()\r\n        let nib = UINib(nibName: \"MyCustomRowType\", bundle: nil)\r\n        let objects = nib.instantiateWithOwner(self, options: nil) as NSArray;\r\n        let first = objects[0] as UIView\r\n        self.clipsToBounds = true\r\n        self.contentView.addSubview(first)\r\n    } \r\n\r\nAny help welcome."}}