#if USE_UIKIT_PUBLIC_HEADERS || !__has_include(<UIKitCore/UIFocusGuide.h>)
//
// UIFocusGuide.h
// UIKit
//
// Copyright © 2015-2018 Apple Inc. All rights reserved.
//
#import <UIKit/UILayoutGuide.h>
@protocol UIFocusEnvironment;
NS_ASSUME_NONNULL_BEGIN
#pragma mark - 焦点导引 Class
#pragma mark -
/*
概述
• 将非视图区域公开为可聚焦的对象
• 此类不是视图,并且不定义新视图或参与视图层次结构
• 此类代表一个不可见的,可聚焦的区域,可以将焦点移动重新定向到其他视图
*/
NS_CLASS_AVAILABLE_IOS(9_0) @interface UIFocusGuide : UILayoutGuide
/// 是否可聚焦(默认:YES)
@property (nonatomic, getter=isEnabled) BOOL enabled;
/// 首选焦点环境
@property (nonatomic, copy, null_resettable) NSArray<id<UIFocusEnvironment>> *preferredFocusEnvironments NS_AVAILABLE_IOS(10_0);
/// 已弃用,请使用preferredFocusEnvironments
@property (nonatomic, weak, nullable) UIView *preferredFocusedView NS_DEPRECATED_IOS(9_0, 10_0, "Use -preferredFocusEnvironments instead.");
@end
NS_ASSUME_NONNULL_END
#else
#import <UIKitCore/UIFocusGuide.h>
#endif
网友评论