
iOS 5 - disponibile la nuova beta 7, ecco l'elenco dettagliato delle novità
1 Settembre 2011 | Max Capitosti
APPLE CERCA UI Automation
lock()
and unlock()
functions of UIATarget
have been replaced with the lockForDuration(
)
function.instruments -w -t
instruments -w -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -e UIASCRIPT -e UIARESULTSPATH
UIKit
- In iOS 5.0 UIPickerView doesn't send its
pickerView:didSelectRow:inComponent:
delegate message due to a programatic selection. - Starting in iOS 5 beta 3, the
exclusiveTouch
property ofUIControl
has returned to its original default value ofNO
. - Returning
nil
from thetableView:viewForHeaderInSection:
method (or its footer equivalent) is no longer sufficient to hide a header. You must overridetableView:heightForHeaderInSection:
and return0.0
to hide a header. - In the iOS 5 beta, the
UITableView
class has two methods to move one cell from one row to another with defined parameters. These APIs are:moveSection:toSection:
moveRowAtIndexPath:toIndexPath:
- Using the
UIWebView
class in Interface Builder, setting transparent background color is possible in iOS 5. Developers compiling against the new SDK can check their XIB for theUIWebView
transparent setting. - In the iOS 5 beta, the
UINavigationBar
,UIToolbar
, andUITabBar
implementations have changed so that thedrawRect:
method is not called on instances of these classes 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 that 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
, androw
methods ofNSIndexPath
now useNSInteger
instead ofNSUInteger
, so that these types match with methods defined onUITableView
. - We have changed the behavior of
scrollToRowAtIndexPath:atScrollPosition:animated:
such thatUITableViewScrollPositionTop
andUITableViewScrollPositionBottom
now adjust for the top and bottom portions of thecontentInset
property. - NEW: In releases prior to iOS 5.0, the
UIPopoverController
class would unconditionally set the autoresizing masks of view controllers which were the content view controller of the popover controller. It would also unconditionally set the autoresizing masks of the views of view controllers pushed on to aUINavigationController
object which was the content view controller of the popover controller.In iOS 5.0, theUIPopoverController
class will no longer do this for applications linked on iOS 5.0 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
)
would not be unreasonable. - The completion handler for
saveToURL:forSaveOperation:completionHandler:
is now being called outside of the coordinated write block, where it used to be called inside. - FIXED: The
autosaveWithCompletionHandler:
method will now only be called for period-based saves and it is safe to return without saving. Documents must save, though, if thesaveToURL:forSaveOperation:completionHandler:
method is invoked.
FACEBOOKSEGUICI SU
TELEGRAMNOTIZIE CORRELATE
iOS 5 - disponibile la nuova beta 6, ecco l'elenco dettagliato delle novità Continua la messa a punto da parte degli ingegneri di Apple del nuovo sistema operativo iOS 5, che probabilmente vedrà la luce in forma definitiva al momento della presentazione ... [19/08/2011]
ULTIME NOTIZIE











