Here I have a problem with the pushController because I want to use da, s my subclass like this
class cellEmpty < cell
@button_help.when(UIControlEventTouchUpInside) do
push RecommendationController.alloc.init
end
def push(controller)
navigationController.pushViewController(controller, animated:true)
end
end
Here the error :
undefined local variable or method `navigationController'
but me, so I think it must be that I use it in a subclass. but how to use it
thank you in advance