added retrieving of calendar type in ios