ios - method to set badge