iOS 6 - Apple rilascia la beta 3 agli sviluppatori, ecco il change-log

17 Luglio 2012 - Max Capitosti
A distanza di tre settimane dalla precedente beta, è arrivata ieri da Apple la nuova beta 3 di iOS 6, riservata agli sviluppatori software registrati. L'aggiornamento può essere installato in modalità OTA direttamente da iPhone o iPad ed ha un peso di circa 350MB. Nelle pagine seguenti pubblichiamo il change-log ufficiale (in inglese) con l'elenco delle novità e delle migliorie implementate su iOS 6 beta 3.


Address Book


  • When an app is in a fresh privacy state and tries to present a ABNewPersonViewController,
    the user cannot dismiss that view controller properly even if they allow
    access to contacts. The user must force quit the app and relaunch.

  • Requesting access to contacts:

  • Users are able to grant or deny access to contact data on a per-app
    basis. To request access to contact data, call the ABAddressBookRequestAccessWithCompletion
    function after calling the ABAddressBookCreateWithOptions function. The
    ABAddressBookRequestAccessWithCompletion function does not block the app
    while the user is being asked to grant or deny access. Until access has
    been granted, the ABAddressBookRef object will not contain any contacts
    and any attempt to modify contacts fails with a kABOperationNotPermittedByUserError
    error. The user is prompted only the first time access is requested; any
    subsequent calls to ABAddressBookCreateWithOptions will use the existing
    permissions. The completion handler is called on an arbitrary queue. If
    the ABAddressBookRef object is used throughout the app, then all usage
    must be dispatched to the same queue to use ABAddressBookRef in a thread-safe
    manner.

  • Checking access authorization status:

  • An app can use the authorization status API to check if it can access contacts, calendars, reminders or photo library. This API is independent from the the request access API and will not prompt the user to grant or deny access. With this API an app can adjust the display of its UI elements that would access the data class. For example, if access to contacts is authorized or not determined then a UI button to pick a contact can be displayed.

  • For Address Book, call the ABAddressBookGetAuthorizationStatus function.
    For Event Kit, call the authorizationStatusForEntityType: class method
    of EKEventStore. For Assets Library, call the authorizationStatus class
    method of ALAssetsLibrary. The meaning of the status values that are returned
    is as follows:

  • Authorization Status Not Determined - The user has not yet made
    a choice regarding whether this app can access the data class.

  • Authorization Status Restricted - This app is not authorized
    to access the data class. The user cannot change this app's status, possibly
    due to active restrictions such as parental controls being in place.

  • Authorization Status Denied - The user explicitly denied access
    to the data class for this app.

  • Authorization Status Authorized - This app is authorized to access
    the data class.


  • CONTINUA LA LETTURA

    NOTIZIE CORRELATE