IOS: scrollToVisible()

Hi

Is anyone used scrollToVisible() ??
please explain how it works in IOS

Thanks,
-Mani

solved by

        MobileElement element = (MobileElement) driver.findElement(By.name("element need to visible"));
	HashMap<String, String> arg = new HashMap<String, String>();
	arg.put("element",  element.getId());
	JavascriptExecutor js = (JavascriptExecutor) driver;
	js.executeScript("mobile: scrollTo", arg);

This does not work on appium 1.6. It says all the commands except scroll have been removed!

below script worked fine for me.
Map<String, Object> params = new HashMap<String, Object>();
params.put(“direction”, “up/down”);
appiumIOSDriver.executeScript(“mobile: scroll”, params);