Eureka: How to center form in Ipad with margins

Created on 28 Aug 2018  路  4Comments  路  Source: xmartlabs/Eureka

Hello
Is there a way i can center the form view
in the state that my rows ,cells or views will not fill up the full width of the Ipad, i want my child views to be placed in the center with margin left and right.

question

Most helpful comment

Hah i got it now ,Glory be to the most High God for this wonderful library ,remain blessed you and your Team members .

All 4 comments

The form is displayed in a table view. You can just place the tableView in the center of the view with margins/constraints to both sides and it should work fine.

Okay ,but Ive never used a tableview to display the forms, mostly i have a raw view controller which implements formViewController ,does this mean i can have a Viewcontroller with a centred tableview and Eureka will detect the tableview and use it to render my form views ?

The form is always displayed in a tableView. You can either set up your view controller in a storyboard and add a UITableView where you want it to be and then connect the outlet to FormViewController's tableView variable, or you can just use the view controller the way you do and then change the frame, margins, etc. of the tableView you inherit from FormViewController.

Hah i got it now ,Glory be to the most High God for this wonderful library ,remain blessed you and your Team members .

Was this page helpful?
0 / 5 - 0 ratings