Created
August 24, 2015 18:10
-
-
Save alessaba/a60d8ba734751d91c518 to your computer and use it in GitHub Desktop.
SetBadge.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
from objc_util import * | |
from console import input_alert,hud_alert | |
badgesting = input_alert('App Badge','Not more than 5 charaters') | |
UIApplication.sharedApplication().setApplicationBadgeString_(badgesting[:5]) | |
hud_alert('Badge Set!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment