A generic framework for ios interaction