-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TableView IBOutlet not showing in Storyboard #295
Comments
I ran into a similar problem. The reason was that XCode/InterfaceBuilder was getting confused by extensions on my view controller that declared additional protocols which IB interpreted as the view controller not inheriting from UIViewController. BTW - you may want to take this discussion to StackOverflow. |
Thanks guys for the response. @mtnbarreto I used Carthage to install and I can't connect an IBOutlet to the compiled Eureka framework. @rlaferla I didn't add any additional protocols in this case. But you're right this seems like an Xcode problem and perhaps not related to Eureka. It's the first time I've encountered this and thoughts it's a Eureka thing. |
Can you temporarily remove FormViewControllerProtocol and then go back into IB? Your screenshot above shows that you had an additional protocol directly on the view controller but your code example in the comment above that one doesn't have it. |
@rlaferla that screenshot above with the FormViewControllerProtocol is not mine. That's @mtnbarreto's |
Problem seems related to linked Eureka.framework when using Carthage. Must be an Xcode swift framework linking bug. Moving on... I've copied source straight into the project and all works. Good enough. |
Reopening here because had same issue again when installing using Carthage. Storyboard doesn't seem to recognise IBOutlets inside Eureka.framework, nor the FormController. I have created this simple example to showcase the problem: Xcode: 7.2.1 Downloading Xcode 7.3 beta5 to try and report back. |
@bachirelkhoury it seems that have nothing to do with Eureka neither carthage. Carthage/Carthage#763 As a workaround install Eureka manually as embedded framework or using cocoapods. |
This hackaround worked for me: open the assistant editor to show both the storyboard and the file containing your subclass of FormViewController. Paste the line "@IBOutlet public var tableView: UITableView?" into your subclass - it won't compile, but for me it made the little circle, which I could then drag onto the table view in the other pane. Then, delete that line; the IBOutlet link will persist. |
I'm having similar problem to #116 where my tableView goes under the NavigationBar.
I am supposed to connect the tableView to the IBOutlet but that outlet doesn't show up in the Storyboard:
The class doesn't appear in the Custom class dropdown either, so seems Storyboard can't seem to identify Eureka's FromViewController as a subclass of UIViewController:
But if I type the class anyway "ProfileViewController", and compile, it all works fine and form is displayed.
The only problem is similar to #116 where my tableView goes under the NavigationBar, but no way to connect the IBOutlet!
Here's what the code looks like:
The text was updated successfully, but these errors were encountered: