iOS 개발 5

[Objective-C] Variables and constants / Paul Hudson의 Objective-C cheat sheet

1. Variables and constants (1) Variable (2) Constant (3) Variable array (4) Constant array (5) Adding a value type to an array (6) Dictionary (7) Enum (8) Appending a string (9) Adding to a number (10) String interpolation (11) Printing debug information 참조: https://www.hackingwithswift.com/articles/114/objective-c-to-swift-conversion-cheat-sheet Objective-C to Swift conversion cheat sheet Here..

iOS/Objective-C 2023.04.08

[iOS / UIKit] How to use Action Sheets

iOS에서 제공하는 액션 시트 활용법에 대해 알아봅시다! https://developer.apple.com/design/human-interface-guidelines/components/presentation/action-sheets/ Action sheets - Presentation - Components - Human Interface Guidelines - Design - Apple Developer Action sheets An action sheet is a modal view that presents choices related to an action people initiate. DEVELOPER NOTE When you use SwiftUI, you can enable action sh..

iOS/UIKit 2023.03.05

[iOS / UIKit] How to detect when the application state become foreground from the background in ViewController not SceneDelegate

안녕하세요! 오늘은 앱이 background 상태에 있다가 foreground로 올라오는 것을 SceneDelegate가 아니라 ViewController에서 확인하는 방법을 알아봅시다! 다들 아시다시피 SceneDelegate를 통해 우리는 앱이 Background에서 Foreground로 넘어오는 것을 확인할 수 있습니다. 물론 그 반대도 가능합니다! 하지만 특정 ViewController에서 Foreground로 넘어오는 것을 확인하는 게 필요한 상황이 있죠? 바로 알아봅시다! willEnterForegroundNotification 옵저버를 추가해주니 ViewController에서 foreground로 들어오는 상황을 notify 해주는 게 보이네요! 그럼 background로 나가는 것도 알 수..

iOS/UIKit 2023.03.03

[Swift] ARC란 무엇인가? with 야곰의 스위프트 프로그래밍

ARC란 무엇인가(What is Automatic Reference Counting?)? - 자료 출처: 야곰의 스위프트 프로그래밍 3판 챕터 27 * 참고: ARC와 값 타입 - ARC가 관리해주는 참조 횟수 계산(Reference Counting)은 참조 타입인 클래스의 인스턴스에만 적용됩니다. - 구조체나 열거형은 값 타입이므로 참조 횟수 계산과 무관합니다. - 즉, 구조체나 열거형은 다른 곳에서 참조하지 않기 때문에 ARC로 관리할 필요가 없습니다. ARC란 - ARC 기능은 이름에서 알 수 있듯이 자동으로 메모리를 관리해주는 방식입니다. - 아무래도 프로그래머가 메모리 관리에 신경을 덜 쓸 수 있기에 편리합니다. - ARC는 더이상 필요하지 않은 클래스의 인스턴스를 메모리에서 해제하는 방식으로 ..

iOS/Common 2021.06.06

[iOS] iOS에서의 네트워크(Networking in iOS) - 이준원 강사님

* 이 내용은 제가 패스캠퍼스에서 이준원 강사님께서 진행하신 iOS 강의를 보고 공부하기 위해 만든 자료입니다. 이준원 강사님의 강의를 수강하고 싶으시다면 이 링크(www.fastcampus.co.kr/dev_online_iosapp)로 방문해 보세요(당연히 광고 아닙니다!). 네트워킹이란 서버와 앱 간의 데이터를 주고 받는 것을 말합니다. 이 때 보통 HTTP라는 방법을 통해 대화를 하게 됩니다. HTTP라는 약속을 통해서 REST한 방식으로 JSON 데이터를 주고받는다고 생각하시면 됩니다. HTTP란 통신규약으로서 서버와 모바일(클라이언트) 사이에서 어떻게 메세지를 주고 받을까에 대한 규칙입니다. 1. POST - 올려주는 것 2. GET - 데이터를 받아오는 것 3. PUT - 올려진 데이터를 바꾸..

Computer Science 2021.01.21