2017-09-27 2 views
0

iOS 11의 사진과 같은 일부 앱의 경우 휴대 전화가 가로 방향으로 배치되어 있고 더 큰 접근성 크기의 동적 텍스트가 켜져있을 때 탭 막대 아이콘을 누르고 있으면 들고있는 탭의 미리보기가 크게 표시됩니다. 내 응용 프로그램에서 이것을 어떻게 지원합니까? 새로운 API인가요? 직접 구현해야합니까? large tab bar previewiOS 11에서 큰 탭 표시 줄 미리보기를 지원하려면 어떻게해야합니까?

답변

2

PDF 이미지 애셋을 사용하고 무료로 큰 탭 표시 줄 미리보기 동작을 사용할 수 있습니다.

PDF 이미지 애셋의 속성 관리자에서 "벡터 데이터 보존"버튼을 확인하십시오.

https://developer.apple.com/videos/play/wwdc2017/204/

Check Preserve Vector Data

enter image description here

1

새로운 속성입니다 : (UITabBarItem이 상속) UIBarItem에

// Higher-resolution version of the standard image. Default is nil. Used for rendering assistive UI (e.g. for users with visual impairments who need large text). If not provided, the system may attempt to generate an image based on the standard image (for instance, by rasterizing matching PDF representations at a higher resolution). 
@property(nullable, nonatomic, strong) UIImage *largeContentSizeImage API_AVAILABLE(ios(11.0)); 

. 관련성이 있기 때문에 헤더 파일에서 주석을 남겼습니다.

인터페이스 빌더의 '접근성'속성에서이를 설정할 수도 있습니다.