개발/아이오에스

개발/아이오에스

switf] collectionview 셀 간격 설정하기

developer.apple.com/documentation/uikit/uicollectionviewdelegateflowlayout/1617705-collectionview Apple Developer Documentation developer.apple.com func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat { return 0 } minimumLineSpacingForSectionAt을 사용해서 셀간격을 조절한다. (섹션의 연속적인 행 또는 열 사이의 간격을..

개발/아이오에스

ios] 네비게이션바 이미지, 버튼 설정

가운데 로고 적용하기 (navigationItem.titleView), 네비게이션바 배경색 설정하기 private func setupRemainingNavItems() { let titleImageView = UIImageView(image: imageLiteral(resourceName: "title_icon")) titleImageView.frame = CGRect(x: 0, y: 0, width: 34, height: 34) titleImageView.contentMode = .scaleAspectFit navigationItem.titleView = titleImageView navigationController?.navigationBar.backgroundColor = .white navigat..

개발/아이오에스

ios] UIButton 코드로 설정하기 (버튼안에 이미지, 타이틀 이동 시키기)

let followButton: UIButton = { let button = UIButton() button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 14) button.setImage(UIImage(systemName: "person.fill.badge.plus"), for: .normal) button.tintColor = twitterBlue button.layer.cornerRadius = 5 button.layer.borderColor = twitterBlue.cgColor button.layer.borderWidth = 1 button.setTitle("Follow", for: .normal) button.setTitleColor(twitterB..

개발/아이오에스

swift 프로젝트를 스토리보드 없이(only code) 개발 셋팅하기 Set Up Project without Storyboard

https://medium.com/@yatimistark/removing-storyboard-from-app-xcode-14-swift-5-2c707deb858 Removing Storyboard From App [Xcode 14, Swift 5] In this article, I will show you how to create a project without a storyboard in a few steps. Or rather, how to get rid of it, and code the… medium.com class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ applicatio..

개발/아이오에스

xcode 에러 “The Local repository is out of date”…i have no branch how to solve this

터미널에서 해당 폴더로 들어가 아래 명령어를 입력. git init git add . git stash save git branch --set-upstream-to=origin/master git pull -r git stash pop git push

개발/아이오에스

ios] Alamofire / kakao api 활용 http 통신하기

// // MySearchRouter.swift // brandi // // Created by dev.geeyong on 2021/01/28. // import Foundation import Alamofire enum MySearchRouter: URLRequestConvertible { case searchPhotos(term: String, pageNumber: String) var baseURL: URL { return URL(string: API.BASE_URL + "/search/")! } var method: HTTPMethod { return .get // switch self { // case .searchPhotos: // return .get // } } var path: Strin..

dev.jake
'개발/아이오에스' 카테고리의 글 목록 (8 Page)