iOS/iOS SeSAC 2기 TIL 99

iOS swift) 커스텀 폰트

iOS swift) 커스텀 폰트 앱 출시시 고려할 사항 & 주의 사항 라이트한 폰트를 사용하는 방향으로 생각하기 20MB같은걸루 깔면 앱 용량이 많이 늘어날 수도 있으니 주의. 로고: 사용자가 입력할 수 있는 input공간 표준어를 입력한다는 생각을 버려야함. 이상하게 치면 네모박스로 보여질 수도 있어서 주의할 것. 그래서 사용자가 입력하는 댓글, 글을 쓸 수 있는 영역 등은 거의 모든 곳은 시스템 폰트로 놔둠. 사용자 경험 사용자가 폰트를 선택할 수 있게끔 다양한 폰트를 제공 나눔고딕/ SF/ 커스텀폰트 모든 폰트들이 사이즈가 같다고 생각하면 안된다. 14 / 18 /17 이런식으로 해야될 수도 있음. 미리 빌드를 해볼 것.

iOS swift) 검색화면에서 scrolling시 키보드 내리기

iOS swift) 검색화면에서 scrolling시 키보드 내리기 func scrollViewWillBeginDragging(_ scrollView: UIScrollView) { self.navigationItem.searchController?.searchBar.resignFirstResponder() } func scrollViewWillBeginDragging(_ scrollView: UIScrollView) { searchController.searchBar.resignFirstResponder()//self.searchBar?.endEditing(true) } 출처: https://stackoverflow.com/questions/40548228/dismiss-keyboard-on-drag

iOS swift) SceneDelegate 처음 시작화면 지정(with navigation)

iOS swift) SceneDelegate 처음 시작화면 지정(with navigation) func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { guard let scene = (scene as? UIWindowScene) else { return } window = UIWindow(windowScene: scene) let rootVC = MainViewController() let navVC = UINavigationController(rootViewController: rootVC) self.window?.rootViewContr..

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] 오픈소스 라이브러리 몇 가지

오픈소스 라이브러리 몇 가지 소개 https://github.com/realm/SwiftLint GitHub - realm/SwiftLint: A tool to enforce Swift style and conventions. A tool to enforce Swift style and conventions. Contribute to realm/SwiftLint development by creating an account on GitHub. github.com https://github.com/SwiftGen/SwiftGen GitHub - SwiftGen/SwiftGen: The Swift code generator for your assets, storyboards, Localizable.strin..