base for ios.