ios 158

2차 평가과제 중 알게된 것들 (테이블뷰 섹션 관련)

TableView Section뒤에 배경화면을 UIViewController의 배경화면으로 하고싶을 때 (비우고 싶은 경우) [self.tableView setBackgroundView:nil]; [self.tableView setBackgroundColor:[UIColor clearColor]]; https://stackoverflow.com/questions/18753411/uitableview-clear-background UITableView clear background I realize that iOS 7 has not officially been released and we should not discuss it BUT I am going crazy trying to figure out th..

[iOS swift] Tableview swipe 시 기능 추가

Tableview swipe 시 기능 추가 (leading, trailing 둘 다 가능) 방법 2가지 >> 1번 방법 func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? { let delete = UIContextualAction(style: .normal, title: "삭제") { [self] action, view, completionHandler in print("favorite Button Clicked") repository.delete(item: self.tasks[indexPath.row]) sel..

tableview code로 구현하기

tableview code로 구현하기 https://shark-sea.kr/entry/iOS-TableView-Code%EB%A1%9C-%EA%B5%AC%ED%98%84%ED%95%98%EA%B8%B0 iOS :: TableView Code로 구현하기 안녕하세요! 상어입니다. 오늘은 전편에 이어 TableView를 Code로 구현하는 내용을 다뤄보겠습니다. 저는 개인적으로 Storyboard를 애용하기 때문에 code로 구현하는 일은 잘 없지만, 간혹 한번씩(드물 shark-sea.kr 글이 잘 쓰여있어서 퍼옴

iOS swift 과제 중- 매개변수타입 / _(underscore)

1. 매개변수 타입 (_ item: String) 이 부분에서 틀렸음 매개변수 타입을 :String 뒷부분에서 지정해주어야. 2. _ 에 대한 설명은 아래 글 참조 https://medium.com/@codenamehong/swift-underscore-90dcbec5072f Swift underscore(_) 함수에서의 _ (underscore) medium.com 한줄 요약: 함수 호출시 넘기는 파라미터 앞에 라벨을 생략하기 위해 _ 를 사용한다. greet(person: “Bob”, day: “Tuesday”) greet(name: “John”, “Wednesday”) 위와 아래의 차이 : 아래의 경우 _ day로 함수를 선언했었음 따라서 argument에 라벨을 따로 붙이지 않는 방식으로 호출해도..

UISearchController , UISearchBar

UISearchController , UISearchBar 방법 2가지 1. UISearchBar를 이용 2. UISearchController를 이용 -> 이렇게 할 경우 좀 더 다이나믹한 효과를 얻을 수 있고, 검색하는 도중 실시간으로 밑에 테이블뷰로 필터링된 검색결과를 보여줄 수 있다. https://codershigh.dscloud.biz/techblogs/tb_009_UISearchController/tb009_script.html UISearchController로 검색 개발하기 시작하기에 앞서 이번 기술 블로그에서는 UISearchController를 이용하여 Search Bar 를 개발하는 방법과 함께 간단한 검색 어플리케이션 예제를 제작합니다. Search Bar는 여러 데이터의 모음(c..

[iOS swift] snapkit이용 TabBarViewController 만들기 programatically (without storyboard)

[iOS swift] snapkit이용 TabBarViewController 만들기 programatically (without storyboard) https://kingwltn.tistory.com/8 [iOS] Custom TabBar 만들기 programmatically 코드로 Tabbar을 만드는 방법에 대해서 정리보겠다. 스토리보드를 이용해서 Tabbar을 구현하는 방법만 사용해봐서 코드로는 처음 구현해봤다. 구현하고자 하는 것은 다음과 같다. 선택된 아이템의 kingwltn.tistory.com