![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/JRfqI/btqVTH4PAsk/0PHCgysudyRK3oQOdKRTz0/img.png)
안녕하세요 Pingu입니다~🐧 iOS 앱은 처음 실행되고 종료될 때까지의 Life Cycle이 존재합니다. 앱이 background에 가거나 foreground로 진입하는 것도 모두 App Life Cycle의 일부분이죠. 이번 글에서는 이러한 App Life Cycle에 대해 알아보려고 합니다. 참고로 View Controller의 Life Cycle이랑은 전혀 다른 별개의 Life Cycle이며 View Controller의 Life Cycle은 여기를 참고해주세요~ 앱은 현재 Life Cycle의 상태에 따라 할 수 있는 작업과 할 수 없는 작업으로 나뉩니다. 상태에 따라 어떤일을 할 수 있는지에 대한 내용은 여기에 정리해뒀어요. 따라서 이러한 상태가 변화될 때 특정 클래스의 메서드를 통해 알리게 ..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/bexXK4/btqVK7KqnOe/qA1HKZqyK5RLBYRuiYxcCk/img.png)
문제 링크 Rotate Image - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (clockwise). You have to rotate the image in-place, which means you have to modify the input 2D matrix directly. DO NOT all..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/o4oHp/btqVAIxvayt/16COeD3chKwoGCmmlHZnO1/img.png)
안녕하세요 Pingu입니다~🐧 오늘은 iOS 앱개발에서 아주아주 중요한 ViewController의 Life cycle에 대해 알아보려고 합니다. 제일 처음 iOS 공부를 시작할 때 공부한 내용인데, 정리는 이제야 해서 올리네요ㅠ iOS 앱개발에서 아주 중요한 내용이니 잘 정리해보도록 하겠습니다. 애플 문서에 나온 사진을 하나 첨부해서 설명하도록 할게요. 위와 같이 애플에서는 뷰 컨트롤러의 생명 주기를 그림으로 설명해주는데, 이를 좀 더 직관적으로 제가 그려봤습니다. ViewDidLoad 이건 뷰 컨트롤러를 만들 때 한 번만 호출합니다. ViewWillAppear 만들어진 뷰 컨트롤러가 뷰 계층 구조에 추가되기 직전에 호출됩니다. 즉 이름 그대로 뷰가 곧 보일 때 호출되는 메서드입니다! ViewDidAp..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/dizTti/btqVtanpmvV/znd9z65FYQKxnwCaP45czK/img.png)
안녕하세요 Pingu입니다! 🐧 오늘은 동영상이나 음악을 백그라운드에서 재생 할 때 사용할 수 있는 제어센터에 존재하는 정보중 컨텐츠의 현재 재생 시간을 알려주는MPNowPlayingInfoPropertyElapsedPlaybackTimer가 있는데요, 얘가 참 말을 안듣습니다; 그래서 열심히 찾아서 해결한 방법을 정리해보려고 합니다. 누군가 동일한 문제가 발생하시면 이 글을 보고 해결하셨으면 좋겠어요 ^~^ 일단 간단하게 MPNowPlayingInfoPropertyElapsedPlaybackTime를 사용할 때 발생하는 문제입니다. 위와 같이 일시정지를 하고 좀 있다가 재생을 누르면 현재 시간이 자기맘대로 흘러있는것을 볼 수 있어요. 이게 실제 콘텐츠의 재생시간이 흐른게 아닌 그냥 저기 보이는 시간만 ..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/zKSuC/btqVsxIOVxw/0I8DLZJZlFDsPAVQWs3Rx1/img.jpg)
문제 링크 Minimum Path Sum - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right, which minimizes the sum of all numbers along its path. Note: You can only move either down or right at any poi..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/WZS4s/btqVe7LsbtC/sHnO5BuGBZGCERrUoft6a1/img.png)
문제 링크 Unique Paths - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right ..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/cuOpZq/btqVtaT6Lg5/oIHU7k0WlxhZOw3QikwMd1/img.jpg)
문제 링크 Merge Intervals - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input. Example 1: In..
안녕하세요 Pingu입니다!🐧 지난 글에서는 하드 디스크를 잘 동작하도록 관리하는 Hard Disk Drive에 대해 알아봤었습니다. 이번 글에서는 비교적 느린 디스크를 더 빠르게, 크기도 더 크게, 데이터의 신뢰성도 유지할 수 있도록 만들어주는 Redundant Arrays of Inexpensive Disks(RAID)에 대해 알아보려고 합니다. 제가 공부할 때 참고하고 있는 책인 OSTEP책 에선 Chapter 38 - Redundant Arrays of Inexpensive Disks(RAID) 부분 입니다! Redundant Arrays of Inexpensice Disks (RAID) 더 빠른 디스크, 더 큰 용량을 가진 디스크, 데이터 신뢰도가 높은 디스크가 있다면 그 디스크를 사용하지 않을..
- Total
- Today
- Yesterday
- operator
- OSTEP
- pattern
- OS
- 테이블뷰
- mac
- BFS
- DP
- 아이폰
- 알고리즘
- 백준
- System
- 프로그래밍
- Combine
- dfs
- 동시성
- Xcode
- 앱개발
- 자료구조
- Swift
- 코딩테스트
- design
- 코테
- Publisher
- 스위프트
- 문법
- IOS
- operating
- Apple
- document
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |