본문 바로가기

모바일/IOS35

HTTP 통신 , JSON 처리 pod 'Alamofire' pod 'AlamofireImage' pod 'SwiftyJSON' pod 'Alamofire-SwiftyJSON' https://github.com/Alamofire/Alamofirehttps://github.com/Alamofire/AlamofireImagehttps://github.com/SwiftyJSON/SwiftyJSONhttps://github.com/SwiftyJSON/Alamofire-SwiftyJSON 2018. 1. 11.
키보드관련 {//키보드 노티피케이션NotificationCenter.default.addObserver(self, selector : #selector(keyboardWillShow(noti:)),name:NSNotification.Name.UIKeyboardWillShow,object:nil)NotificationCenter.default.addObserver(self, selector : #selector(keyboardWillShow(noti:)),name:NSNotification.Name.UIKeyboardWillHide,object:nil)}//키보드가 올라올때func keyboardWillShow(noti:NSNotification){//키보드 높이let notiInfo = noti.userInfo! .. 2018. 1. 11.
Carousel 관련 https://github.com/WenchaoD/FSPagerViewhttps://github.com/taglia3/TGLParallaxCarouselhttps://github.com/ZacharyKhan/ZKCarousel 3개의 후보군중에 FSPagerView적용https://github.com/WenchaoD/FSPagerView profile파일에pod "FSPagerView" 추가후 pod install Downloading dependenciesInstalling FSPagerView (0.7.1)Using SideMenu (3.1.5)Generating Pods projectIntegrating client project Sending stats 2018. 1. 10.
그라데이션 CAGradientLayer CAGradientLayer를 이용해서 그라데이션 설정 더욱 자세한 옵션은해당사이트를 참조할것https://www.appcoda.com/cagradientlayer/ https://developer.apple.com/documentation/quartzcore/cagradientlayer let gradientLayer = self.layer as! CAGradientLayergradientLayer.colors = [UIColor(red: 105/255.0, green: 236/255.0, blue: 194/255.0, alpha: 1.0).cgColor,UIColor(red: 15/255.0, green: 175/255.0, blue: 244/255.0, alpha: 1.0).cgColor] //색상.. 2018. 1. 10.
초기 개발을 위해 배운것들 강좌인프런 : 앱 12개를 만들며 배우는 Swift4 & iOS11 아이폰 iOS 개발 강좌https://www.inflearn.com/course/swift4-%EC%8A%A4%EC%9C%84%ED%94%84%ED%8A%B8-ios-%EA%B0%9C%EB%B0%9C/ iOS AutoLayout을 활용한 실전 UI구성 전략 - 카카오톡 같은 고급 UI 만들기https://www.inflearn.com/course/autolayout-ui_ios/ 책 : 스위프트 프로그래밍 - 한빛미디어Do it 스위프트로 아이폰 앱 만들기 입문 Swift 4.0판 아이북스의 The Swift Programming Language 기본 베이스는 위의 내용이 끝 2018. 1. 8.
코코아포드(cocoapods) 설치 https://jwkcp.github.io/2017/03/22/cocoapods_with_alamofire/ 1. cocoapods 설치- 터미널 실행후sudo gem install cocoapodspod setup2. 프로젝트 폴더 이동후 프로필 생성pod init 3. 프로필 파일 편집생성된 프로필 파일에 사용하고자 하는 라이브러리를 추가한다# Uncomment the next line to define a global platform for your project# platform :ios, '9.0' target 'project_name' do # Comment the next line if you're not using Swift and don't want to use dynamic framew.. 2018. 1. 3.
NavigationController NavigationControllerThe nearest ancestor in the view controller hierarchy that is a navigation controller. Declarationvar navigationController: UINavigationController? { get } 사이드 메뉴를 만들기 위해서 사용 SideMenuhttps://www.youtube.com/watch?v=K89-RLzYxQM 라이브러리https://github.com/jonkykong/SideMenu 2018. 1. 3.
CAGradientLayer https://developer.apple.com/documentation/quartzcore/cagradientlayer헤더부분 생성시 상단에 그라데이션을 넣기위해서 사용 2018. 1. 3.