Closed jjuliano closed 12 years ago
I might not fully understand your problem.
What you can do is inherit from Formotion::FormController
in your controller like this:
class MyController < Formotion::FormController
def init
form = Formotion::Form.new({
sections: [{
title: "It works",
rows: [{
title: "Indeed",
type: :static
}]
}]
})
initWithForm(form)
end
end
and then use your custom controller:
@view_controller = MyController.alloc.init
@jjuliano ever get this working how you wanted?
Thanks this is working for me.
Hi,
I'm trying to move all the formation stuff inside it's own separate controller, but I couldn't see any examples, I'm using a UITabBarController in my app_delegate, and the controller that it includes has an 'init' super method with additional code to set the tabBarItem.image and the init method will be called via MyController.alloc.init
could you provide an example on how to separate the formation stuff into it's own controller?