Skip to content
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

Subforms with multiple views per page #246

Open
lilasquared opened this issue Mar 9, 2016 · 2 comments
Open

Subforms with multiple views per page #246

lilasquared opened this issue Mar 9, 2016 · 2 comments

Comments

@lilasquared
Copy link

Hi

I'm pretty new to ruby, and RubyMotion, but we have an iPad app that was built using it. I really like what I've seen so far. I began using formotion to implement a new page on the app that needs some user input.

The page is layed out in two columns. The left column is a list of items to select (one), and the right is some more options. I want to use a subform on the right half, but when you navigate to the subform the whole view gets pushed over for the subform. Is it possible to restrict that navigation shif to only the right half of the page? I believe this is how it works with the iPad rotated in the settings menu, just as an example. Is this possible? or is there more setup on the main view that has to happen for that? I appreciate any help! Thanks!

edit: also, is it possible to change font colors and stuff for the forms?

@clayallsopp
Copy link
Owner

I've never tried running Formotion in the split view you describe (I'm guessing it's based on a http://nshipster.com/uisplitviewcontroller/) - you might have to write some custom code. I.e. when you tap the subform button, instead of doing the default thing you could override some of the methods: https://github.com/clayallsopp/formotion/blob/master/lib/formotion/row_type/subform_row.rb#L47

Re styling, search around the repo issues, I show some examples: #32

@lilasquared
Copy link
Author

Clay,

Thanks for the quick response! I tried the split view controller but it is still forcing the whole view to navigate to the subform. My PO is cool with it so we might just move on, though I wish I could get it to work. I appreciate the help, I didnt even know that the split view controller existed! I will keep digging at it and let you know what I find out. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@clayallsopp @lilasquared and others