일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- iOS 버전 점유율
- Concurrent
- iOS Target
- 메모리 접근 충돌
- conflicting access to memory
- Dispatch.main.sync
- App Signing
- Automatically manage signing
- 잡초가득블로그
- Git Large File Storage
- RIBs Tutorial
- 대머리깃허브
- RxSwift
- windowScene
- UICoordinateSpace
- in-out
- RxCocoa
- memory safety
- Ribs
- Dependency Rule
- Large File Storage
- 로버트마틴형
- Apple Certificate
- SWIFT
- ios
- swiftdocs
- coordinateSpace
- Github file size
- rib
- 클린아키텍쳐
- Today
- Total
목록카테고리 (70)
빙수왕의 개발일지

우선.. 나는 MVVM 구조에 대해서만 알고 있었고 RxSwift를 잘 모르는 상태였다. KxCoding에서 RxSwift를 반정도 들었었는데 이건 그냥 듣고 따라만해서는 감이 오지 않았다. 뭔가 감이 오도록 예제 샘플 아무거나 따라하고싶어서 유투브에 검색함ㅎㅎ.. 유투브짱!! 아래 유투브가 가장 먼저 나와서 이걸 보고 따라했다. (친절한 강의 영상 감사함니다) 여기서 만드는 앱은 NewsApi를 사용하여 List에 뿌리는 앱이다. 그리고 만들고 나니.. 내가 배운 이론으로 생각했을 때, 바꿀 부분들이 보여서 리팩토링을 진행했다. -> 는 또 공부 더 하니까 내가 한 리팩토링이 정답이 아니였다..ㅠ.ㅠ https://www.youtube.com/watch?v=Ckxngx2w3ZQ 일단 열심히 다 듣고 따..

Int to String let str1 = "\(myInt)" // 문자열 보간법 let str2 = String(myInt) // String initializer 사용 String to Int Int(myString) ?? 0 // Integer형식이 아닌 경우(실패하면) nil이 리턴된다. // NSString 사용 ⇒ 이 방법은 (float or double) to String 에 쓰인다. // 이건 실패하면 nil이 아닌 0을 리턴한다. let myInt = (myString1 as NSString).integerValue intValue vs integerValue 테스트 하다보니 아래처럼 2가지 메소드 나옴.. 우린 integerValue를 쓰지만 intValue는 무엇인가? 정답은 32비..

일반적으로 Result 타입을 받아서 에러처리를 하거나.. 결과처리를 할 때 switch case문을 사용한다. switch case 사용하지 않고 success일 때만 if문으로 캐스팅하고싶었는데.. 어떻게 하는지 찾기 귀찮아서.. 핳하 지금껏 switch case를 사용했는데 드디어 시간내서 찾아봤따.. if-case문의 존재를 잘 몰랐던 것 같다. 흑흑 if case .success(let result) = result { } 요렇게 하면 되는거였다. 참고 링크 https://medium.com/swift-programming/swift-typecasing-3cd156c323e Swift: Typecasing Enums …as data models? medium.com

문제상황: ViewController에서 IBOutlet을 끌어다 놓고 viewDidLoad에서 호출만 하면 뷰가 nil이다. Unexpectedly found nil while implicitly unwrapping an Optional value 원인: 1. 일단 바보처럼 xib의 이름이 ViewController의 이름과 달랐다. ex) xib파일명: ABC.xib / swift파일명: ABCViewController.swift 2. 바꿨더니 다른 오류가 났다. 위치가 달랐음. AppDelegate에서 났는데 loaded the \"aaaViewController\" nib but the view outlet was not set. 아.. 알고보니 outlet과 view를 연결을 안해줘서 그런거였다..
2가지 allocation이 있다. static, dynamic 두개의 차이? static은 메모리 할당이 컴파일 시점에, dynamic은 런타임에 일어난다는 것이다. Swift에서 이건 값 타입(static allocation)이냐, 레퍼런스 타입(dynamic allocation)이냐로 결정이 된다. 이에 관한 외국 형님의 포스팅 https://medium.com/@Yerazhas/static-dynamic-things-in-swift-part-1-f53fae89ef38 Static/dynamic things in swift. Part 1 This post is a combination of key points from other articles on these topic and my own use ..
문제상황 코드로 커스텀 뷰를 만드는데 계속 콘솔에 제약오류가 났다... 가장먼저 뷰에 translatesAutoresizingMaskIntoConstraints = false 를 줬는지 먼저 체크하자. wtf auto layout https://www.wtfautolayout.com/

Jump Bar에서 보이는 주석 stackoverflow.com/questions/24017316/pragma-mark-in-swift #pragma mark in Swift? In Objective C, I can use #pragma mark to mark sections of my code in the symbol navigator. Since this is a C preprocessor command, it's not available in Swift. Is there a stand-in for this in Swif... stackoverflow.com 여기서 가져와씀. 프로토콜에 주석달기 설명에 주저리주저리 안붙인다. summary와 Discussion만 쓴다. 예시) 함수에 주석달기 1. 첫..