🌼 11월 29일 월요일

🪴Team

프로젝트 근황 이야기 나눔

아이콘은 어떻게 만들지

재호님: 시간 선택하는 picker 추가

동원님: 사이드메뉴에 백업 복구 기능 추가 - 최근 백업 날짜 표기할 수 있도록

영민님: 암호설정 기능 완성 테마 설정은 뺄 예정 폴더 생성하고 일기 이동할수있도록

민준님: 폰트 설정할 예정 검색창 관련해서 오래걸렸음

광호님: 전시회 일정 보여주는 달력 전시회 포스터마다 길이가 다른데 어떻게 해결해야할지

개인학습

2021-11-29 15:59:18.784040+0900 TimeDiary[33474:990969] [LayoutConstraints] Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. 
	Try this: 
		(1) look at each constraint and try to figure out which you don't expect; 
		(2) find the code that added the unwanted constraint or constraints and fix it. 
	(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSAutoresizingMaskLayoutConstraint:0x60000006c730 h=--& v=--& _UIToolbarContentView:0x134e470e0.width == 0   (active)>",
    "<NSLayoutConstraint:0x60000004da40 H:|-(0)-[_UIButtonBarStackView:0x134e4aef0]   (active, names: '|':_UIToolbarContentView:0x134e470e0 )>",
    "<NSLayoutConstraint:0x60000004da90 H:[_UIButtonBarStackView:0x134e4aef0]-(0)-|   (active, names: '|':_UIToolbarContentView:0x134e470e0 )>",
    "<NSLayoutConstraint:0x60000006bf70 'TB_Leading_Leading' H:|-(20)-[_UIModernBarButton:0x134e7e210'select']   (active, names: '|':_UIButtonBarButton:0x134e7e030 )>",
    "<NSLayoutConstraint:0x600000053ed0 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x134e7e210'select']-(20)-|   (active, names: '|':_UIButtonBarButton:0x134e7e030 )>",
    "<NSLayoutConstraint:0x60000006c230 'UISV-canvas-connection' UILayoutGuide:0x600001a46220'UIViewLayoutMarginsGuide'.leading == UIView:0x134e4c270.leading   (active)>",
    "<NSLayoutConstraint:0x60000006c280 'UISV-canvas-connection' UILayoutGuide:0x600001a46220'UIViewLayoutMarginsGuide'.trailing == _UIButtonBarButton:0x134e7e030.trailing   (active)>",
    "<NSLayoutConstraint:0x60000006c2d0 'UISV-spacing' H:[UIView:0x134e4c270]-(0)-[_UIButtonBarButton:0x134e7e030]   (active)>",
    "<NSLayoutConstraint:0x60000004d8b0 'UIView-leftMargin-guide-constraint' H:|-(0)-[UILayoutGuide:0x600001a46220'UIViewLayoutMarginsGuide'](LTR)   (active, names: '|':_UIButtonBarStackView:0x134e4aef0 )>",
    "<NSLayoutConstraint:0x60000004d950 'UIView-rightMargin-guide-constraint' H:[UILayoutGuide:0x600001a46220'UIViewLayoutMarginsGuide']-(0)-|(LTR)   (active, names: '|':_UIButtonBarStackView:0x134e4aef0 )>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x600000053ed0 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x134e7e210'select']-(20)-|   (active, names: '|':_UIButtonBarButton:0x134e7e030 )>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.

simulator_screenshot_CB740556-7197-43F2-A9F0-E2A866EEB08B.png

pickerview에 툴바를 달아서 select 버튼을 달았더니, 위와 같은 오류가 발생했다.

툴바를 선언하는 부분에서 frame을 설정해주니 해결되었다.

let toolBar = UIToolbar(frame: showTagPicker.frame)

원래는 UIToolbar()로 선언했었다.