Git Product home page Git Product logo

swift-photoframe's Introduction

Photo Frame

sally

Step 1 프로젝트 생성하기 - 2월 14일 오후 2시

작업 목록

  • 포토프레임 프로젝트 저장소를 본인 저장소로 fork하고 로컬에 clone 하기
  • iOS app 프로젝트 생성하기
  • 스토리보드에서 TabBar Controller 추가하기
  • 두 개 Scene 중에 첫 번째 Scene에 Custom Class를 ViewController로 지정하기
  • 자동 생성된 ViewController 클래스 viewDidLoad() 함수에서 print(#file, #line, #function, #column) 코드를 추가하고 실행하면 콘솔 영역에 무엇이 출력되는지 확인하기
/Users/seeunlee/Dev/CodeSquad_2022/iOS class/swift-photoframe/PhotoFrame/PhotoFrame/ViewController.swift 7 viewDidLoad() 40

학습 키워드

  • UITabBarController
  • UITabBar
Step 2 IBOutlet 연결하기 - 2월 14일 오후 3시30분

작업 목록

  • First Scene에 레이블 만들기
  • First Scene에 만들어져 있는 레이블을 IBOutlet으로 연결하기
  • 연결한 아웃렛 변수에 값을 변경하기

학습 키워드

  • UILabel 클래스 속성(Property)
Step 3 IBAction 연결하기 - 2월 18일 오전 11시

작업 목록

  • next button 만들고 IBAction 연결하기
  • next button의 액션으로 텍스트 속성 변경해보기
  • color change button과 새로운 color change 액션 만들기

추가 학습거리

  • next button과 color change button 모두에 color change action을 연결해보기
    • next button 하나에 두 개의 액션 연결
    • color change action 하나에 두 개의 버튼 연결

질문거리

  • next button에 두 개의 액션을 달고 두 액션의 순서를 지정해주고 싶었는데 실패했습니다.
    • 먼저 생성된 순서로 지정되나 싶어서 하나를 지우고 순서를 바꿔서 작성해보기도 해봤지만 이상하게 순서가 바뀌지 않았습니다..!
    • 혹시 스토리보드만 사용해서는 불가능한 것일까요?
    • 따로 코드로 액션을 연결해주고 순서를 지정해주는? 방법을 알아보는게 좋을까요?
Step 4 Scene을 Segue로 연결하기 - 2월 18일 오전 11시 30분

작업 목록

  • view 추가하고 버튼 연결
  • 연속하는 view 하나 더 추가
Step 5 ViewController 연결하기 - 2월 18일 오후 4시 30분

작업 목록

  • green view에 닫기 버튼 추가하고 action 연결
  • black view에 닫기 버튼 추가하고 action 연결
  • segue 제거하고 코드로 scene 연결하기
    • green view에 storyboard ID를 부여해주고, black view controller에서 아이디로 해당 뷰를 찾음
    • present로 view를 연결해줌
Step 6 Container ViewController 활용하기 - 2월 18일 오후 5시

작업 목록

  • navigation controller embed 시키기
  • green view를 연결해주는 방식을 present에서 navigation에 push 하는 것으로 변경
Step 7 다른 화면 연결하기 - 2월 18일 오후 6시

작업 목록

  • tab bar의 두번째 scene에 image view와 버튼 추가
  • 프로젝트에 demo image 파일 추가
  • 버튼 클릭 시 랜덤한 이미지로 바뀌게 하기

Step 8 사진 앨범 선택하기 - 2월 21일 오후 6시

작업 목록

  • 액자 이미지 뷰 추가
  • 선택 버튼 만들기
  • UIImagePickerController를 사용하여 사진 앱에서 사진을 가져오도록 구현
    • image picker의 delegate에 yellow view controller를 할당
    • 할당하기 위해서 extension으로 yellow view controller에 UIImagePickerControllerDelegate와 UINavigationControllerDelegate 프로토콜을 채택
  • Info.plist에서 사진 앨범 권한 설정
  • 앨범 외에 카메라에서 사진을 가져오는 기능 추가
    • 시뮬레이터에서는 카메라가 안되기 때문에 에러 처리
z index 설정 앨범에서 사진 가져오기 카메라에서 가져오기 추가
  • 사진 앨범 권한 얻기
권한을 준 경우 권한을 거절 했을 때 재요청 하는 경우

swift-photoframe's People

Contributors

sally4405 avatar godrm avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.