-
-
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
Help with customization #557
Comments
Yes you can use the following: |
@hdoria Could you create rows with that style? |
@mats-claassen not yet. I have tried with defaultCellSetup, but it didn't work. I'm having problems with the left and right margins. :( |
One solution would be to subclass Another solution is changing |
I was able to reproduce the model. I subclassed the FieldCell class and overrode the method customConstraints as @mats-claassen suggested (thanks for that). I set the separatorStyle for none, changed the visual language part to get the correct margins, set a board around the textflied and some padding using a UIView for text inside of it. For the button I can add an UIButton as subview or use only the cell's textlabel. However, we still need to limit the area of the "click". I assume it's need some coding to change the methods to use only the textfields/subviews/textlabels instead of the whole cell, and perhaps it's not the best approach, so I'd love to hear some suggestions. Thanks in Advance!! |
For the button I would use a footer on the section with a real UIButton so that the user gets the correct button tap animation. That also solves your "tappable area issue". |
Hi Thank you |
I have simple solution , Just change the tableview frame as below self.tableView?.frame = CGRect(x: 20, y: (self.tableView?.frame.origin.y)!, width: (self.tableView?.frame.size.width)!-40, height: (self.tableView?.frame.size.height)!) and in .setupcell set cell.layer.borderColor and borderWidth |
|
Changing layoutMargins code example: |
MESSAGE TO ALL: These answers only work if you have done other things I fixed this issue (from start to finish) by doing this I don't want to repost |
Hi,
I'm having some troubles to customize my form. Is there a way to customize Eureka to have all the TextRows to be something like this:
I need to:
Thanks.
The text was updated successfully, but these errors were encountered: