fixed bug if rootViewController is not UINavigationController.(Bug in Y origin)

Signed-off-by: Michael henry Pantaleon <michaelhenry119@yahoo.com.ph>