- 숙박 > 호테 종류 선택
- 식사 > 음식 종류 선택
- 주류 및 간식 > 주류 및 간시 종류 선택
- 교통 > 교통 종류 선택
- 쇼핑 > 쇼핑 종류 선택
- 액티비티 > 액티비티 종류 선택
- Xcode, 제플린, 슬랙
- XLpagerTapStrip
- TinyConstraints
- 데이터 작업중이라 예시 이미지로 구현
- 인기여행지 데이터 데이터 기다리는 중
- button을 이용해 메거진 구혀 완료 , 데이터 기다리는중
- 전체일정 : Drag&Drop 기능
- 마이페이지 : 지출 입력/출력
- 여행상세페이지 : 스크롤 뷰
- 총 예산 : 예산에 따른 막대기 바 배정
- delegate 을 이용한 data 전달 방식 종류
- segue 를 이용한 방식
- segue 를 안 이용한 방식
- xib로 뷰 구성후
let headerView = UIView.instantiate(CityChooseSection.self)
headerView.foldButton.tag = section
headerView.configure(with: twoDimensionalArray[section].country)
headerView.delegate = self
return headerView
- xib로 뷰 구성하 전 코드로 작성한 Section View
let headerView = UIView(frame: CGRect(x: 0, y: 0, width: tableView.bounds.width, height: 50))
headerView.backgroundColor = .lightGray
let country = UILabel(frame: CGRect(x: 0, y: 0, width: 100, height: 50))
country.text = twoDimensionalArray[section].country
country.textAlignment = .center
country.backgroundColor = .cyan
country.width(100)
let button = UIButton(type: .system)
button.frame = CGRect(x: 0, y: 0, width: 100, height: 50)
button.setImage(UIImage(named: "naviBtnBackB"), for: .normal)
button.setImage(UIImage(named: "cursor"), for: .selected)
button.backgroundColor = .clear
button.tintColor = .black
button.width(50)
button.height(50)
button.addTarget(self, action: #selector(handleExpandClose), for: .touchUpInside)
button.tag = section
headerView.addSubview(country)
headerView.addSubview(button)
let underline = UIView(frame: CGRect(x: 0, y: 0, width: tableView.bounds.width, height: 1))
headerView.addSubview(underline)
underline.backgroundColor = .black
country.leadingToSuperview()
country.centerYToSuperview()
button.trailingToSuperview()
button.centerYToSuperview()
underline.height(1)
underline.trailingToSuperview()
underline.leadingToSuperview()
underline.bottomToSuperview()
return headerView