
iOS 5 - rilasciata la versione 'Gold Master', il lancio fra una settimana
5 Ottobre 2011 | Max Capitosti
APPLE CERCA UIKit
- Rotation callbacks in iOS 5 are not applied to view controllers that are presented over a full screen. What this means is that if your code presents a view controller over another view controller, and then the user subsequently rotates the device to a different orientation, upon dismissal, the underlying controller (i.e. presenting controller) will not receive any rotation callbacks. Note however that the presenting controller will receive a
viewWillLayoutSubviewscall when it is redisplayed, and theinterfaceOrientationproperty can be queried from this method and used to lay out the controller correctly. - In iOS 5, the
UIPickerViewclass doesn't send itspickerView:didSelectRow:inComponent:delegate message in response to the programatic selection of an item. - Returning
nilfrom thetableView:viewForHeaderInSection:method (or its footer equivalent) is no longer sufficient to hide a header. You must overridetableView:heightForHeaderInSection:and return0.0to hide a header. - In iOS 5, the
UITableViewclass has two methods to move one cell from one row to another with defined parameters. These APIs are:moveSection:toSection:moveRowAtIndexPath:toIndexPath:
- Using the
UIWebViewclass in Interface Builder, setting a transparent background color is possible in iOS 5. Developers compiling against the new SDK can check their XIB for theUIWebViewtransparent setting. - In iOS 5, the
UINavigationBar,UIToolbar, andUITabBarimplementations have changed so that thedrawRect:method is not called unless it is implemented in a subclass. Apps that have re-implementeddrawRect:in a category on any of these classes will find that thedrawRect:method isn't called. UIKit does link-checking to keep the method from being called in apps linked before iOS 5 but does not support this design on iOS 5 or later. Apps can either:- Use the customization API for bars in iOS 5 and later, which is the preferred way.
- Subclass
UINavigationBar(or the other bar classes) and overridedrawRect:in the subclass.
- The
indexPathForRow:inSection:,section, androwmethods ofNSIndexPathnow useNSIntegerinstead ofNSUInteger, so that these types match with methods defined onUITableView. - The behavior of the
UITableViewclass'sscrollToRowAtIndexPath:atScrollPosition:animated:method has changed. If a scroll position ofUITableViewScrollPositionToporUITableViewScrollPositionBottomis specified, the method now adjusts for the top and bottom portions of thecontentInsetproperty. - In releases prior to iOS 5, the
UIPopoverControllerclass would unconditionally set the autoresizing masks of view controllers that provided the content for the popover controller. It would also unconditionally set the autoresizing masks of the views of view controllers pushed on to aUINavigationControllerobject which was the content view controller of the popover controller.TheUIPopoverControllerclass no longer does this for applications linked against iOS 5 or later. Developers should ensure that the autoresizing masks of views are set properly to allow for arbitrary resizing within any container, not just popovers. A mask of(UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight)is reasonable. - The completion handler for
saveToURL:forSaveOperation:completionHandler:is called outside of the coordinated write block. - The
autosaveWithCompletionHandler:method is now only called for period-based saves when it is safe to return without saving. Documents must save, though, if thesaveToURL:forSaveOperation:completionHandler:method is invoked.
FACEBOOKSEGUICI SU
TELEGRAM
ULTIME NOTIZIE
Xiaomi Mix Flip - in arrivo a fine mese, in anteprima nuove immagini
Realme GT6 - una dotazione differente per la versione per il mercato della Cina
Redmi 13 5G - nuovo smartphone con Snapdragon 4 Gen 2 e fotocamera da 108MP
Oppo lancia i nuovi Reno 12 F 5G e Reno 12 FS 5G in Italia
OnePlus svela nuovi dettagli sulle novità in arrivo il 16 luglio
Vodafone - insieme a Meta per ottimizzare l'efficienza della rete
Nothing CMF Phone 1 - lo smartphone 5G economico con retro personalizzabile
OnePlus svela la gamma di prodotti per il Summer Launch Event del 16 luglio
Realme C61 - ufficiale il nuovo entry-level con resistenza a polvere e acqua IP54
Vivo Y28s 5G - ufficiale il nuovo smartphone di fascia media
Realme 12 4G - chip Snapdragon 685 e schermo OLED per la nuova variante senza 5G
Apple estende il software di diagnostica Self Service Repair in Europa