감자주먹밥
close
프로필 배경
프로필 로고

감자주먹밥

  • 분류 전체보기 (92)
    • iOS (3)
      • Swift (14)
      • RxSwift (2)
      • UIKit (35)
      • SwiftUI (10)
      • Test (4)
    • ReactNative (0)
    • NodeJS (0)
    • 코퉤엣 (14)
    • Android (8)
    • Git (2)
  • 홈
  • 태그
  • iOS
  • Github
  • 방명록

노래방Book 앱 정리 - UI 변경 (TextField+UIDatePicker, TableView Infinite Scroll)

이번에는 간단하게 변경한 UI 2가지를 정리하려고 한다.TableView 무한 스크롤의 경우 구현 한 적이 있었지만, 최신곡, 인기곡 등 그렇게 버거울 정도의 데이터가 한번에 들어오는게 아니여서 그냥 한번에 데이터를 불러와 보여줬었지만노래 검색의 경우 "사랑" 단어를 포함한 노래만 4만곡 이상을 넘어가는 것으로 기억한다. 이것 때문이라도 페이징으로 데이터를 불러와야 할 거 같아 수정했다.TextField+UIDatePicker는 최신곡 조회 기능에 날짜를 선택하기위해 사용했었는데, DatePicker에 연, 월 만 선택하는 걸 원했지만 당시에 왜 속성이 없지? 하면서 그냥 Date 전체를 선택할 수 있게 했던게 아쉬워서 수정하게 됐다.수정을 위해 좀 알아보던 중 datePickerMode에 yearAnd..

  • format_list_bulleted iOS/UIKit
  • · 2024. 5. 5.
  • textsms
노래방Book 앱 정리 - 데이터 관리 (CoreData 사용해보기 )

노래방Book 앱 정리 - 데이터 관리 (CoreData 사용해보기 )

iOS 강의를 다 듣고 바로 만들어서 배포해 본 앱이 있는데,, 이번에 다시 보니 정말 배웠던거 그대로 다 넣느라고 이상한게 많아서 수정하면서 정리를 하기로 했다.앱의 기능 중 맘에 드는 곡을 북마크 하면 따로 애창곡 리스트로 볼 수 있는 기능이 있는데, 당시에 UserDefaults를 알게되고 아! 이게 iOS에서 DB처럼 쓰는거구나! 하면서 그냥 사용했다.그러다 옛날 블로그 포스팅으로도 있지만 CoreData 존재를 알고나서 보니 멍청한 짓을 한 거 같아서 이것부터 수정하기로 했다.일단 둘의 차이점을 먼저 알아보자면UserDefaults는 App Setting 정보 같은 간단한 정보를 저장하기에 적합하고CoreData는 복잡하고 큰 데이터를 저장하기 적합하다.CoreData를 데이터베이스 자체로 알고..

  • format_list_bulleted iOS/UIKit
  • · 2024. 5. 5.
  • textsms

[LeetCode] 345. Reverse Vowels of a String

https://leetcode.com/problems/reverse-vowels-of-a-string/solutions/3329717/swift-solution-beats-100-easy-to-understand/?envType=study-plan-v2&envId=leetcode-75 Swift solution [beats 100%] (easy to understand) - Reverse Vowels of a String - LeetCode View Nihad_s's solution of Reverse Vowels of a String on LeetCode, the world's largest programming community. leetcode.com "hello" 와 같은 문자열의 모음만 reve..

  • format_list_bulleted 코퉤엣
  • · 2023. 6. 22.
  • textsms

[LeetCode] 1431. Kids With the Greatest Number of Candies

https://leetcode.com/problems/kids-with-the-greatest-number-of-candies/description/?envType=study-plan-v2&envId=leetcode-75 Kids With the Greatest Number of Candies - LeetCode Can you solve this real interview question? Kids With the Greatest Number of Candies - There are n kids with candies. You are given an integer array candies, where each candies[i] represents the number of candies the ith k..

  • format_list_bulleted 코퉤엣
  • · 2023. 6. 22.
  • textsms

[LeetCode] 1071. Greatest Common Divisor of Strings

프로그래머스 풀 때도 봤던 문제. https://leetcode.com/problems/greatest-common-divisor-of-strings/description/?envType=study-plan-v2&envId=leetcode-75 Greatest Common Divisor of Strings - LeetCode Can you solve this real interview question? Greatest Common Divisor of Strings - For two strings s and t, we say "t divides s" if and only if s = t + ... + t (i.e., t is concatenated with itself one or more times). ..

  • format_list_bulleted 코퉤엣
  • · 2023. 6. 22.
  • textsms
[SwiftUI] CoreData + CloudKit으로 데이터 관리하기

[SwiftUI] CoreData + CloudKit으로 데이터 관리하기

CoreData는 UserDefaults와 비슷하다 생각할 수 있지만, UserDefaults는 간단한 데이터 정도의 저장이 적합하고, CoreData는 UserData, 큰 데이터를 저장하기 용이하다.여기서 CloudKit까지 같이 사용해 준다면, GoodNote 어플처럼 따로 서버를 두지 않고 여러 기기의 앱 내에서 데이터를 동기화시킬 수 있다.key-value형식이나 파일, 또는 CoreData Model 형식과 비슷하게 저장할 수 있는데 GoodNote는 파일 형식으로 저장해서 사용하는 것 같다.SwiftData가 곧 나와 금방 잊혀질 것 같으니 미리 공부해 적용해 봤다.구현먼저 프로젝트 생성시에 Use CoreData, Host in CloudKit을 체크하여 생성한다.체크하면 Persisten..

  • format_list_bulleted iOS/SwiftUI
  • · 2023. 6. 13.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • ···
  • 16
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (92)
    • iOS (3)
      • Swift (14)
      • RxSwift (2)
      • UIKit (35)
      • SwiftUI (10)
      • Test (4)
    • ReactNative (0)
    • NodeJS (0)
    • 코퉤엣 (14)
    • Android (8)
    • Git (2)
최근 글
인기 글
태그
  • #SWIFT
  • #swiftUI
  • #UIKit
  • #programmers
  • #Kotlin
  • #android
  • #코딩테스트
  • #tableView
  • #ios
  • #백준
최근 댓글
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바