formotion
formotion copied to clipboard
Subforms with multiple views per page
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?
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: https://github.com/clayallsopp/formotion/issues/32
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!