🍏(115)
-
[SwiftLint] Xcode에서 프로젝트에 lint 적용하기.
Swift Lint렘에서 제공하는 Swift Lint를 적용해 보려합니다. GitHub - realm/SwiftLint: A tool to enforce Swift style and conventions.A tool to enforce Swift style and conventions. Contribute to realm/SwiftLint development by creating an account on GitHub.github.com brew에서 swiftlint 설치brew install swiftlint Xcode에서 적용하기 Target → Build Phases → Run Script 추가export PATH="$PATH:/opt/homebrew/bin"if which swiftlint >/..
2025.02.04 -
[iOS / macOS] Swift 면접 질문 2
문제 리스트 가져온 곳 GitHub - JeaSungLEE/iOSInterviewquestions: 👨🏻💻👩🏻💻iOS 면접에 나올 질문들 총 정리👨🏻💻👩🏻💻iOS 면접에 나올 질문들 총 정리 . Contribute to JeaSungLEE/iOSInterviewquestions development by creating an account on GitHub.github.com 레벨 2Swift의 동시성(Concurrency) 프로그래밍에 대해 설명해주세요.Grand Central Dispatch(GCD)의 주요 개념과 사용 방법을 설명해주세요.OperationQueue와 DispatchQueue의 차이점은 무엇인가요?동시성 프로그래밍에서 발생할 수 있는 문제(Race Cond..
2024.12.31 -
[iOS / macOS] 내 맥북에서 서버를 만들고 내 아이폰과 소켓 통신을 해보자
들어가기 앞서iOS의 소켓 통신에 대해서 궁금해서 찾아보다가 정보들이 부실하기도 하고, SocketIO에 대한 정보가 많아서 First-party Framework인 Network를 통해 직접 소켓 통신을 해보고 정리해 보기 위해서 이 글을 작성합니다.사전 지식이전에 c++98(POSIX) KQueue로 http 서버를 만들어 본 적이 있습니다. (대략 소켓 통신과 fd, tcp/ip, udp에 대해서 알고 있다는 뜻) GitHub - MyLittleWebServer/webserv: Web server made with C++98Web server made with C++98 . Contribute to MyLittleWebServer/webserv development by creating an acc..
2024.12.31 -
[iOS] 데이터를 저장하는 방법들 / 간단 예제
간단한 예제들과 함께 알아보는 iOS에서 데이터를 저장하는 방법1. UserDefaultsNSUserDefaults에 저장되어 키-값 쌍으로 앱이 삭제되기 전까지 영구적으로 저장됩니다.간단하고 사용이 쉽습니다만 대규모 데이터나 민감한 데이터에 적합하지 않습니다.import Foundationclass UserDefaultsHelper { static let shared = UserDefaultsHelper() private let launchCountKey = "launchCount" private init() {} // 실행 횟수 읽기 func getLaunchCount() -> Int { return UserDefaults.standard.intege..
2024.12.31 -
[iOS] 코드베이스 프로젝트 세팅 / Codebase Project
1. Main.storyboard(Main) 삭제(move trash) 2. Info.plist에서 Storyboard Name 삭제- 를 눌러 삭제하자 3. UIKit Main Storyboard File Base Name 삭제Module > TARGETS > Build Settings > filter(story)delete 키를 눌러 삭제하자 4. SceneDelegate의 willConnectTo 파라미터 함수 수정func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { guard let windowScene = (scene as..
2024.12.30