BUGFIX: Fixed deprecated warning (works if you target ios6 and newer)

use if you do not want to support iOS5 or older.