mynameiscowjaehoon

  • 홈
  • 태그

iOS/Errors 2

'the realm is already in a write transaction' 에러

이미 realm write에 들어가 있는 쓰레드에서 다시 write를 수행하려고 할 때 발생하는 에러이다. let action = UIAlertAction(title: "Add Item", style: .default) { action in if let currentCategory = self.selectedCategory { do { try self.realm.write { let newItem = Item() newItem.title = textField.text! newItem.dateCreated = Date() // make current date currentCategory.items.append(newItem) self.saveItem(item: newItem) // 문제발생 } } catc..

iOS/Errors 2022.02.08

unrecognized selector sent to instance 에러

BMI 앱에서 Height Slider Bar를 IBAction으로 연결하고, 바를 움직이자 다음과 같은 에러가 발생하였다. 꽤 오래 헤맸으나 결론은 @IBAction으로 만들어준 또 다른 함수를 리팩토링 옵션으로 삭제해주지 않고 그저 코드만 삭제 해준 바람에 Slider Bar는 아직 해당 함수와 연결된 것으로 설정되어 잇으나, 코드상에는 해당함수가 없었기 때문이였다. 사용하지 않는 heightSlider 뷰 컨트롤러와의 이벤트 연결을 끊어주니 제대로 동작하였다.

iOS/Errors 2022.01.01
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (146)
    • 데이터베이스 (21)
    • Java (1)
    • Spring Framework (7)
      • Spring Core (3)
      • Spring MVC (3)
    • iOS (55)
      • 데이터베이스 조작 (11)
      • StoryBoard (14)
      • SwiftUI (7)
      • AutoLayout (7)
      • Errors (2)
      • 동시성 프로그래밍 (5)
    • Swift (21)
    • Required (4)
    • 알고리즘 (6)
      • 그래프이론 (4)
      • 문자열 (0)
      • 자료구조 (1)
      • 기타 (1)
    • PS (9)
      • 백준 (4)
      • Tip (1)
      • Swift (0)
    • Back-End (2)
    • 운영체제 (14)
    • 기타 (5)
      • Git (0)

Tag

MKMapView, rename operation, Swift, Relational Algebra, SpringMVC, MapKit, PostConstruct, main queue, spring framework, Spring Framwork, 재명명, private queue, string operation, 운영체제, PreDestroy, Core Image, global queue, Lottie Files, bean lifecycle, @Binding,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/09   »
일 월 화 수 목 금 토
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 29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바