
[iOS- 오류] Fatal error: Expected superview but found nil when attempting make constraint `equalToSuperview`.
addContentView를 안해서 생긴 오류였음 ~
addContentView를 안해서 생긴 오류였음 ~
That's illegal이라는 말에 상처 받는다. addSubview에 안넣은 UI 부분이 있었다 ~ ㅜ ㅜ addSubview에 안넣은 view들이 있는지 확인해보기!
1. 프로젝트 생성하기 2. Main.storyboard 삭제 삭제만 한 상태로 프로젝트를 그냥 시작하게 되면 오류가 발생합니다! Main.storyboard를 찾을 수 없다는 오류가 뜨게됩니다. 'Could not find a storyboard named 'Main' in bundle NSBundle [파일위치] WeatherClone.app> (loaded)' terminating with uncaught exception of type NSException 3. Storyboard 오류 해결하기 - info.plist에 가서 storyboard 이름을 삭제시킵니다. - 프로젝트 targets 설정에서 BuildSettings - info.plist Value - UIKit Main Storyboa..
글쓰기 API를 이용해, 트윗 글쓰기를 해보려고 합니다. 1. API 명세서 확인하기 2. API 명세서에 맞게 Router생성 [Router/TwitPostRouter.swift] - Router 객체에서 경로와 HTTP 메소드 설정을 해준다. - 파라미터에 content 와 writer를 넣어준다. import Foundation import UIKit import Alamofire enum TwitPostRouter { case postTwit(content: String, writer: Writer) } extension TwitPostRouter: BaseRouter { var path: String { return "/twit" } var method: HTTPMethod { return .p..