S w i f t - M a n

최근 포스트

UITabBarController Height 변경하기

December 20 2022

UIStoryBoard를 사용한다면 UITabBarItem을 CustomClass로 적용하기 매우 쉽다. 코드 베이스라면 UITabBarItem이 UITabBarController에서 자체적으로 가지고 있기 때문에 CustomClass를 적용하기가 애매해진다.

Stack Memory vs Heap Memory Speed

November 26 2022

Stack Memory가 Heap Memory 보다 속도가 더 빠른 이유에 대해 생각해봤다. CPU에서 접근하는 메모리는 CPU 내의 메모리다. DRAM은 CPU에서 주소를 복사해 오고 그곳을 접근한다.

[iOS] ModuleMap

November 04 2022

.moduleMap은 Objective-C API 와 Swift API 의 중간 다리 역할을 한다. iOS 개발은 Objective-C, Swift 언어로 개발이 가능하다.

[Xcode Runtime Error] outlined copy of

October 04 2022

애플리케이션의 크래시는 운영에 매우 중요한 요소이다. 현재 운영 중인 프로젝트는 99.98% ~ 99.99% 의 크래시로부터 안전성을 유지하고 있다. 주로 Firebase Crashlytics와, Xcode Organizer의 Crashs로 report를 받고 있으며, 예상치 못한...

[AVPlayer] 백그라운드에서 제어

October 03 2022

AVPlayer는 Application의 Life Cycle에 영향을 받는다. UI는 Background에 진입하면 동작을 멈추고, UI가 아닌 기능은 Background에서 동작한다.

RIBs

September 23 2022

RIBs 아키텍처는 Composition을 활용하여 비지니스 로직을 트리구조를 사용하여 수직적인 계층으로 쪼개는 것에 초점이 맞추어저 있다. 작은 객체로 쪼갠 후 요소들이 일관성 있는 통신 방법을 통해 아키텍처에 익숙하지 않은 팀원에게도 프로젝트를 익숙하도록 개선할 수 있다.

[Swift] 윤년 계산

September 20 2022

윤년 규칙 윤년 4로 나누어 떨어지는 해 1992, 1996, 2004, 2008, 2012, 2016… 4, 100, 400으로 나누어 떨어지는 해 1600년, 2000, 2400…

[Swift] Valid Palindrome

September 18 2022

A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same fo...

[Swift] 4Sum

September 17 2022

Given an array nums of n integers, return an array of all the unique quadruplets [nums[a], nums[b], nums[c], nums[d]] such that:

[Swift] 3Sum Closest

September 16 2022

Given an integer array nums of length n and an integer target, find three integers in nums such that the sum is closest to target.