일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- stable-diffusion-webui local 네트워크에서 접속
- Firebase authentication apple login 최신
- 로컬 서버 접속
- Spring boot swagger blank screen
- Firebase authentication apple login
- invite user for supabase project
- 주 4일 근무제 경험담
- Supabase edge function insert data
- Supabase edge function
- 소개팅앱 만들기 stomp
- supabase edge function deploy error
- 주 4일 근무제
- Spring LocalDateTime response array
- 주 4일 근무제 log
- 소개팅앱 만들기 flutter
- supabase storage feature not enabled for this tenant
- Stomp user connection event
- supabase storage public url not working
- no such module '__ObjC'
- DT_TOOLCHAIN_DIR cannot be used
- Android apple login 인증서 설정
- Android apple login identifier
- Android apple login
- Spring google SMTP settings
- stable-diffusion-webui local 접속
- Firebase authentication android apple login
- Firebase authentication android apple login setting
- 소개팅앱 만들기
- supabase edge function deploy error supabaseurl is required
- Stomp socket connection event
Archives
- Today
- Total
꿀맛코딩
iOS 13 UISearchBar _cancelButtonText Error 본문
iOS 13 에서
uiSearchBar.setValue("cancel".localized, forKey: "_cancelButtonText")
부분에서
Terminating app due to uncaught exception 'NSGenericException', reason: 'Access to UISearchBar's set_cancelButtonText: ivar is prohibited. This is an application bug'
위와 같은 에러 코드가 뿜어져 나오면서 앱이 죽어버렸다.
다른 iPhone 들에서는 멀쩡하게 작동 하던 코드가 왜 작동이
안될까 하며 찾아 보던때에
우연히 힌트를 발견했다.
https://stackoverflow.com/a/29232231/11852339
이사람의 글에서 보면 key 값이
_ (언더바) 가 빠져 있다.
그래서
uiSearchBar.setValue("cancel".localized, forKey: "cancelButtonText") 와
추가적으로
uiSearchBar.setShowsCancelButton(true, animated: true)
Cancel Button 의 사용을 명시적으로 표기 해줬다.
이제 iPhone 11에서도 정상적으로 Cancel Button 이 동작한다.
반응형
'공부방 > iOS' 카테고리의 다른 글
Comments