-
-
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
Form inside a View instead ViewController #723
Comments
Just make a UITableView where you want your form to be and then hook it up to the tableView IBOutlet in FormViewController. |
Exactly, your tableView does not have to occupy the whole screen. |
@pwicks86 @christianhr any code sample. how to hook it up?
|
@mats-claassen How exactly is this done? I've tried following the above recommendation but I've hit a wall. In IB there is no outlet called The second attempt I made was to override the
The third attempt I made was to programmatically set constraints on
|
@pouriaalmassi Did you install Eureka by Carthage? I had that issue as well. It seems to be an bug between Carthage and XCode and I applied the hackaround described in this issue: |
@developerdalelaw I am using Carthage to install Eureka. Will file a bug if there isn't one already. Thanks for the tip! |
Hi Reopening this one, I'm using cocoa pods and trying to use a uiview instead of the uiviewcontroller, any suggestion on how I can achieve this? I'm using latest pod version, swift 3 Hoping for your kind response. Thanks. |
@rjjohnpatrickcruz Here's what worked for me: I believe you have to use a
override func viewDidLoad() {
super.viewDidLoad()
form +++ Section() { section in
section <<< TextRow() {// etc...
}
} |
Thanks, @nikarc ! Old thread but I think this could be a part of documentation... :) Or maybe I should've known it as common iOS knowledge but I hadn't encountered this situation before where the outlet is defined in the inherited parent class. |
@stami I agree, this should be part of the documentation. |
Showing forms in a subview of the view controller. Original content was here: xmartlabs#723
I hope this helps someone - I appreciate this isn't exactly what the question was about but I had to put this somewhere it has taken me two days to figure this out.. there is very little online other than people asking asn other people not telling them exactly what to do |
I wonder if I can add my form within a UIView instead of a ViewController, I need some graphics on the top, just before of the Form
The text was updated successfully, but these errors were encountered: