Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- github
- geofencing
- Session
- Xcode
- 한글
- Firebase
- Git
- window
- Realm
- 이미지
- MacOS
- IOS
- Archive
- appstore
- rxswift
- FLUTTER
- Apple
- UIButton
- Swift
- JPA
- 개발자
- SwiftUI
- mac
- darkmode
- Code
- view
- 웹뷰
- iOS16
- Notification
- error
Archives
- Today
- Total
목록status (1)
EEYatHo 앱 깎는 이야기
Swift ) 웹뷰 Status Code 테스트, 에러처리 stub - EEYatHo iOS
웹뷰에서 내려오는 status code 로 에러처리를 하려하는데, 테스트할 만한 stub이 없어서 정리. 테스트할 status code URL 404 https://github.com/qwdscxzvdw 502 https://scrap.uznam8x.space/ 코드 /* 웹뷰 response가 오고 난 후, 다시한번 탐색여부를 결정하는 대리자 메소드 statusCode로 에러처리 decidePolicyFor navigationAction에서 탐색을 거부했다면 이 대리자까지 오지않음 */ func webView(_ webView: WKWebView, decidePolicyFor navigationResponse: WKNavigationResponse, decisionHandler: @escaping (W..
iOS, Swift
2022. 6. 17. 17:47