Documentation Archive Developer
Search

UIKit Changes for Objective-C

UIKit

NSLayoutConstraint.h

NSLayoutManager.h

DeclarationReadonly
From
- (NSUInteger)firstUnlaidCharacterIndex
--
To
@property(nonatomic, readonly) NSUInteger firstUnlaidCharacterIndex
yes

DeclarationReadonly
From
- (NSUInteger)firstUnlaidGlyphIndex
--
To
@property(nonatomic, readonly) NSUInteger firstUnlaidGlyphIndex
yes

NSParagraphStyle.h

Modified NSTextTab
Protocols
FromNSCoding, NSCopying
ToNSCoding, NSCopying, NSSecureCoding

UIAccessibility.h

UIAccessibilityConstants.h

UIAccessibilityCustomRotor.h (Added)

UIAccessibilityElement.h

UIActivity.h

UIActivityIndicatorView.h

Removed -[UIActivityIndicatorView isAnimating]

UIActivityItemProvider.h

Declaration
From
- (NSString *)activityViewController:(UIActivityViewController *)activityViewController dataTypeIdentifierForActivityType:(NSString *)activityType
To
- (NSString *)activityViewController:(UIActivityViewController *)activityViewController dataTypeIdentifierForActivityType:(UIActivityType)activityType

Declaration
From
- (id)activityViewController:(UIActivityViewController *)activityViewController itemForActivityType:(NSString *)activityType
To
- (id)activityViewController:(UIActivityViewController *)activityViewController itemForActivityType:(UIActivityType)activityType

Declaration
From
- (NSString *)activityViewController:(UIActivityViewController *)activityViewController subjectForActivityType:(NSString *)activityType
To
- (NSString *)activityViewController:(UIActivityViewController *)activityViewController subjectForActivityType:(UIActivityType)activityType

Declaration
From
- (UIImage *)activityViewController:(UIActivityViewController *)activityViewController thumbnailImageForActivityType:(NSString *)activityType suggestedSize:(CGSize)size
To
- (UIImage *)activityViewController:(UIActivityViewController *)activityViewController thumbnailImageForActivityType:(UIActivityType)activityType suggestedSize:(CGSize)size

UIApplication.h

Removed -[UIApplication isIgnoringInteractionEvents]
Deprecation
From--
TotvOS 10.0

Declaration
From
@property(nonatomic, readonly) NSString *preferredContentSizeCategory
To
@property(nonatomic, readonly) UIContentSizeCategory preferredContentSizeCategory

Deprecation
From--
TotvOS 10.0

Declaration
From
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options
To
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options

Declaration
From
- (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(NSString *)extensionPointIdentifier
To
- (BOOL)application:(UIApplication *)application shouldAllowExtensionPointIdentifier:(UIApplicationExtensionPointIdentifier)extensionPointIdentifier

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

UICloudSharingController.h (Added)

UICollectionView.h

DeclarationReadonly
From
- (NSArray<NSIndexPath *> *)indexPathsForSelectedItems
--
To
@property(nonatomic, readonly) NSArray<NSIndexPath *> *indexPathsForSelectedItems
yes

DeclarationReadonly
From
- (NSArray<NSIndexPath *> *)indexPathsForVisibleItems
--
To
@property(nonatomic, readonly) NSArray<NSIndexPath *> *indexPathsForVisibleItems
yes

DeclarationReadonly
From
- (NSInteger)numberOfSections
--
To
@property(nonatomic, readonly) NSInteger numberOfSections
yes

DeclarationReadonly
From
- (NSArray<__kindof UICollectionViewCell *> *)visibleCells
--
To
@property(nonatomic, readonly) NSArray<__kindof UICollectionViewCell *> *visibleCells
yes

Declaration
From
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
To
- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath

UICollectionViewFlowLayout.h

UICollectionViewLayout.h

DeclarationReadonly
From
- (CGSize)collectionViewContentSize
--
To
@property(nonatomic, readonly) CGSize collectionViewContentSize
yes

UIColor.h

UIContentSizeCategory.h (Added)

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

Header
FromUIKit/UIApplication.h
ToUIKit/UIContentSizeCategory.h

UIContentSizeCategoryAdjusting.h (Added)

UIControl.h

DeclarationReadonly
From
- (UIControlEvents)allControlEvents
--
To
@property(nonatomic, readonly) UIControlEvents allControlEvents
yes

DeclarationReadonly
From
- (NSSet *)allTargets
--
To
@property(nonatomic, readonly) NSSet *allTargets
yes

UIDevice.h

UIDynamicAnimator.h

DeclarationReadonly
From
- (NSTimeInterval)elapsedTime
--
To
@property(nonatomic, readonly) NSTimeInterval elapsedTime
yes

UIEvent.h

DeclarationReadonly
From
- (NSSet<UITouch *> *)allTouches
--
To
@property(nonatomic, readonly) NSSet<UITouch *> *allTouches
yes

UIFocus.h

DeprecationOptional
From----
TotvOS 10.0yes

Modified UIFocusGuide
Header
FromUIKit/UIFocus.h
ToUIKit/UIFocusGuide.h

Header
FromUIKit/UIFocus.h
ToUIKit/UIFocusGuide.h

DeprecationHeader
From--UIKit/UIFocus.h
TotvOS 10.0UIKit/UIFocusGuide.h

UIFocusGuide.h (Added)

Modified UIFocusGuide
Header
FromUIKit/UIFocus.h
ToUIKit/UIFocusGuide.h

Header
FromUIKit/UIFocus.h
ToUIKit/UIFocusGuide.h

DeprecationHeader
From--UIKit/UIFocus.h
TotvOS 10.0UIKit/UIFocusGuide.h

UIFont.h

DeclarationReadonly
From
- (UIFontDescriptor *)fontDescriptor
--
To
@property(nonatomic, readonly) UIFontDescriptor *fontDescriptor
yes

Declaration
From
+ (UIFont *)preferredFontForTextStyle:(NSString *)style
To
+ (UIFont *)preferredFontForTextStyle:(UIFontTextStyle)style

UIFontDescriptor.h

DeclarationReadonly
From
- (NSDictionary<NSString *,id> *)fontAttributes
--
To
@property(nonatomic, readonly) NSDictionary<NSString *,id> *fontAttributes
yes

Declaration
From
+ (UIFontDescriptor *)preferredFontDescriptorWithTextStyle:(NSString *)style
To
+ (UIFontDescriptor *)preferredFontDescriptorWithTextStyle:(UIFontTextStyle)style

UIGeometry.h

DeclarationReadonly
From
- (CGAffineTransform)CGAffineTransformValue
--
To
@property(nonatomic, readonly) CGAffineTransform CGAffineTransformValue
yes

DeclarationReadonly
From
- (CGPoint)CGPointValue
--
To
@property(nonatomic, readonly) CGPoint CGPointValue
yes

DeclarationReadonly
From
- (CGRect)CGRectValue
--
To
@property(nonatomic, readonly) CGRect CGRectValue
yes

DeclarationReadonly
From
- (CGSize)CGSizeValue
--
To
@property(nonatomic, readonly) CGSize CGSizeValue
yes

DeclarationReadonly
From
- (CGVector)CGVectorValue
--
To
@property(nonatomic, readonly) CGVector CGVectorValue
yes

DeclarationReadonly
From
- (UIEdgeInsets)UIEdgeInsetsValue
--
To
@property(nonatomic, readonly) UIEdgeInsets UIEdgeInsetsValue
yes

DeclarationReadonly
From
- (UIOffset)UIOffsetValue
--
To
@property(nonatomic, readonly) UIOffset UIOffsetValue
yes

UIGestureRecognizer.h

DeclarationReadonly
From
- (NSUInteger)numberOfTouches
--
To
@property(nonatomic, readonly) NSUInteger numberOfTouches
yes

UIGestureRecognizerSubclass.h

Declaration
From
- (void)touchesEstimatedPropertiesUpdated:(NSSet *)touches
To
- (void)touchesEstimatedPropertiesUpdated:(NSSet<UITouch *> *)touches

UIGraphicsImageRenderer.h (Added)

UIGraphicsPDFRenderer.h (Added)

UIGraphicsRenderer.h (Added)

UIGraphicsRendererSubclass.h (Added)

UIGuidedAccessRestrictions.h

DeclarationReadonly
From
- (NSArray<NSString *> *)guidedAccessRestrictionIdentifiers
--
To
@property(nonatomic, readonly) NSArray<NSString *> *guidedAccessRestrictionIdentifiers
yes

UIImage.h

UIImageView.h

Removed -[UIImageView isAnimating]

UIImpactFeedbackGenerator.h (Added)

UIInputViewController.h

UIInterface.h

UIKitDefines.h

Added #def UIKIT_CLASS_AVAILABLE_IOS_ONLY
Added #def UIKIT_CLASS_AVAILABLE_WATCHOS_ONLY

UILabel.h

Modified UILabel
Protocols
FromNSCoding
ToNSCoding, UIContentSizeCategoryAdjusting

UINibLoading.h

Override Requires Super
From--
Toyes

UINotificationFeedbackGenerator.h (Added)

UIPasteboard.h

Removed UIPasteboard(UIPasteboardDataExtensions)

UIPopoverBackgroundView.h

UIPresentationController.h

DeclarationReadonly
From
- (UIModalPresentationStyle)adaptivePresentationStyle
--
To
@property(nonatomic, readonly) UIModalPresentationStyle adaptivePresentationStyle
yes

DeclarationReadonly
From
- (CGRect)frameOfPresentedViewInContainerView
--
To
@property(nonatomic, readonly) CGRect frameOfPresentedViewInContainerView
yes

Designated Initializer
From--
Toyes

DeclarationReadonly
From
- (UIView *)presentedView
--
To
@property(nonatomic, readonly) UIView *presentedView
yes

DeclarationReadonly
From
- (BOOL)shouldPresentInFullscreen
--
To
@property(nonatomic, readonly) BOOL shouldPresentInFullscreen
yes

DeclarationReadonly
From
- (BOOL)shouldRemovePresentersView
--
To
@property(nonatomic, readonly) BOOL shouldRemovePresentersView
yes

UIPressesEvent.h

DeclarationReadonly
From
- (NSSet<UIPress *> *)allPresses
--
To
@property(nonatomic, readonly) NSSet<UIPress *> *allPresses
yes

UIPreviewInteraction.h (Added)

UIRegion.h

Declaration
From
+ (instancetype)infiniteRegion
To
+ (UIRegion *)infiniteRegion

UIResponder.h

Removed NSObject(UIResponderStandardEditActions)
Modified UIResponder
Protocols
From--
ToUIResponderStandardEditActions

DeclarationReadonly
From
- (BOOL)canBecomeFirstResponder
--
To
@property(nonatomic, readonly) BOOL canBecomeFirstResponder
yes

DeclarationReadonly
From
- (BOOL)canResignFirstResponder
--
To
@property(nonatomic, readonly) BOOL canResignFirstResponder
yes

DeclarationReadonly
From
- (BOOL)isFirstResponder
--
To
@property(nonatomic, readonly) BOOL isFirstResponder
yes

DeclarationReadonly
From
- (UIResponder *)nextResponder
--
To
@property(nonatomic, readonly) UIResponder *nextResponder
yes

Declaration
From
- (void)touchesEstimatedPropertiesUpdated:(NSSet *)touches
To
- (void)touchesEstimatedPropertiesUpdated:(NSSet<UITouch *> *)touches

Optional
From--
Toyes

Optional
From--
Toyes

Optional
From--
Toyes

Optional
From--
Toyes

Optional
From--
Toyes

Optional
From--
Toyes

Optional
From--
Toyes

Optional
From--
Toyes

Optional
From--
Toyes

Optional
From--
Toyes

Optional
From--
Toyes

Optional
From--
Toyes

Optional
From--
Toyes

UIScreen.h

UISplitViewController.h

DeclarationReadonly
From
- (UIBarButtonItem *)displayModeButtonItem
--
To
@property(nonatomic, readonly) UIBarButtonItem *displayModeButtonItem
yes

UIStackView.h

UITabBar.h

Declaration
From
@property(nonatomic, assign) id<UITabBarDelegate> delegate
To
@property(nonatomic, weak) id<UITabBarDelegate> delegate

Declaration
From
@property(nonatomic, assign) UITabBarItem *selectedItem
To
@property(nonatomic, weak) UITabBarItem *selectedItem

UITabBarItem.h

UITableView.h

UITextChecker.h

Removed -[UITextChecker setIgnoredWords:]
Declaration
From
+ (NSArray *)availableLanguages
To
+ (NSArray<NSString *> *)availableLanguages

Declaration
From
- (NSArray *)completionsForPartialWordRange:(NSRange)range inString:(NSString *)string language:(NSString *)language
To
- (NSArray<NSString *> *)completionsForPartialWordRange:(NSRange)range inString:(NSString *)string language:(NSString *)language

Declaration
From
- (NSArray *)guessesForWordRange:(NSRange)range inString:(NSString *)string language:(NSString *)language
To
- (NSArray<NSString *> *)guessesForWordRange:(NSRange)range inString:(NSString *)string language:(NSString *)language

Declaration
From
- (NSArray *)ignoredWords
To
@property(nonatomic, strong) NSArray<NSString *> *ignoredWords

UITextField.h

Modified UITextField
Protocols
FromNSCoding, UITextInput
ToNSCoding, UIContentSizeCategoryAdjusting, UITextInput

UITextInput.h

DeclarationReadonly
From
- (BOOL)hasText
--
To
@property(nonatomic, readonly) BOOL hasText
yes

DeclarationReadonly
From
- (id)insertDictationResultPlaceholder
--
To
@property(nonatomic, readonly) id insertDictationResultPlaceholder
yes

Declaration
From
+ (NSArray<NSString *> *)activeInputModes
To
+ (NSArray<UITextInputMode *> *)activeInputModes

UITextInputTraits.h

UITextInteraction.h (Added)

UITextView.h

UITimingCurveProvider.h (Added)

UITimingParameters.h (Added)

UITraitCollection.h

UIView.h

Modified UIView
Protocols
FromNSCoding, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UITraitEnvironment
ToCALayerDelegate, NSCoding, UIAppearance, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusItem, UITraitEnvironment

DeclarationReadonly
From
- (UIEdgeInsets)alignmentRectInsets
--
To
@property(nonatomic, readonly) UIEdgeInsets alignmentRectInsets
yes

DeclarationReadonly
From
- (BOOL)canBecomeFocused
--
To
@property(nonatomic, readonly) BOOL canBecomeFocused
yes

DeclarationReadonly
From
- (BOOL)hasAmbiguousLayout
--
To
@property(nonatomic, readonly) BOOL hasAmbiguousLayout
yes

DeclarationReadonly
From
- (CGSize)intrinsicContentSize
--
To
@property(nonatomic, readonly) CGSize intrinsicContentSize
yes

Override Requires Super
From--
Toyes

Header
FromUIKit/UIView.h
ToUIKit/UIInterface.h

Header
FromUIKit/UIView.h
ToUIKit/UIInterface.h

Header
FromUIKit/UIView.h
ToUIKit/UIInterface.h

UIViewAnimating.h (Added)

UIViewController.h

Removed -[UIViewController isBeingDismissed]
Removed -[UIViewController isBeingPresented]
Removed -[UIViewController isMovingFromParentViewController]
Removed -[UIViewController isMovingToParentViewController]
Removed -[UIViewController isViewLoaded]
Declaration
From
- (BOOL)disablesAutomaticKeyboardDismissal
To
@property(nonatomic, assign) BOOL disablesAutomaticKeyboardDismissal

DeclarationReadonly
From
- (UIBarButtonItem *)editButtonItem
--
To
@property(nonatomic, readonly) UIBarButtonItem *editButtonItem
yes

DeclarationReadonly
From
- (NSArray<id<UIPreviewActionItem>> *)previewActionItems
--
To
@property(nonatomic, readonly) NSArray<id<UIPreviewActionItem>> *previewActionItems
yes

DeclarationReadonly
From
- (BOOL)shouldAutomaticallyForwardAppearanceMethods
--
To
@property(nonatomic, readonly) BOOL shouldAutomaticallyForwardAppearanceMethods
yes

UIViewControllerTransitionCoordinator.h

Removed -[UIViewControllerTransitionCoordinatorContext isAnimated]
Removed -[UIViewControllerTransitionCoordinatorContext isCancelled]
Removed -[UIViewControllerTransitionCoordinatorContext isInteractive]
DeclarationReadonly
From
- (id<UIViewControllerTransitionCoordinator>)transitionCoordinator
--
To
@property(nonatomic, readonly) id<UIViewControllerTransitionCoordinator> transitionCoordinator
yes

Deprecation
From--
TotvOS 10.0

DeclarationReadonly
From
- (UIViewAnimationCurve)completionCurve
--
To
@property(nonatomic, readonly) UIViewAnimationCurve completionCurve
yes

DeclarationReadonly
From
- (CGFloat)completionVelocity
--
To
@property(nonatomic, readonly) CGFloat completionVelocity
yes

DeclarationReadonly
From
- (UIView *)containerView
--
To
@property(nonatomic, readonly) UIView *containerView
yes

DeclarationReadonly
From
- (BOOL)initiallyInteractive
--
To
@property(nonatomic, readonly) BOOL initiallyInteractive
yes

DeclarationReadonly
From
- (CGFloat)percentComplete
--
To
@property(nonatomic, readonly) CGFloat percentComplete
yes

DeclarationReadonly
From
- (UIModalPresentationStyle)presentationStyle
--
To
@property(nonatomic, readonly) UIModalPresentationStyle presentationStyle
yes

DeclarationReadonly
From
- (CGAffineTransform)targetTransform
--
To
@property(nonatomic, readonly) CGAffineTransform targetTransform
yes

DeclarationReadonly
From
- (NSTimeInterval)transitionDuration
--
To
@property(nonatomic, readonly) NSTimeInterval transitionDuration
yes

Declaration
From
- (__kindof UIViewController *)viewControllerForKey:(NSString *)key
To
- (__kindof UIViewController *)viewControllerForKey:(UITransitionContextViewControllerKey)key

Declaration
From
- (__kindof UIView *)viewForKey:(NSString *)key
To
- (__kindof UIView *)viewForKey:(UITransitionContextViewKey)key

UIViewControllerTransitioning.h

Removed -[UIViewControllerContextTransitioning isAnimated]
Removed -[UIViewControllerContextTransitioning isInteractive]
DeclarationReadonly
From
- (UIView *)containerView
--
To
@property(nonatomic, readonly) UIView *containerView
yes

DeclarationReadonly
From
- (UIModalPresentationStyle)presentationStyle
--
To
@property(nonatomic, readonly) UIModalPresentationStyle presentationStyle
yes

DeclarationReadonly
From
- (CGAffineTransform)targetTransform
--
To
@property(nonatomic, readonly) CGAffineTransform targetTransform
yes

DeclarationReadonly
From
- (BOOL)transitionWasCancelled
--
To
@property(nonatomic, readonly) BOOL transitionWasCancelled
yes

Declaration
From
- (__kindof UIViewController *)viewControllerForKey:(NSString *)key
To
- (__kindof UIViewController *)viewControllerForKey:(UITransitionContextViewControllerKey)key

Declaration
From
- (__kindof UIView *)viewForKey:(NSString *)key
To
- (__kindof UIView *)viewForKey:(UITransitionContextViewKey)key

DeclarationReadonly
From
- (UIViewAnimationCurve)completionCurve
--
To
@property(nonatomic, readonly) UIViewAnimationCurve completionCurve
yes

DeclarationReadonly
From
- (CGFloat)completionSpeed
--
To
@property(nonatomic, readonly) CGFloat completionSpeed
yes

UIViewPropertyAnimator.h (Added)

UIVisualEffectView.h