IOS
-
이번 프로젝트를 시작하며 개발 일지를 작성해보려고 한다. AWS를 활용하여 백엔드 개발자와 커뮤니티를 만들려고 한다. 프로젝트를 만들고 AWS Amplify 공식 문서를 참고하여 연동하였다. https://docs.amplify.aws/start/getting-started/setup/q/integration/ios/#prerequisites https://docs.amplify.aws/start/getting-started/setup/q/integration/ios/#prerequisites docs.amplify.aws 시작하기 전에 node와 npm을 설치하였다. (Terminal에서 node만 설치해도 npm은 자동으로 설치됨) //node 설치 brew node install 그 후 amplif..
UniNuri (1) : iOS Project 와 AWS Amplify 연동이번 프로젝트를 시작하며 개발 일지를 작성해보려고 한다. AWS를 활용하여 백엔드 개발자와 커뮤니티를 만들려고 한다. 프로젝트를 만들고 AWS Amplify 공식 문서를 참고하여 연동하였다. https://docs.amplify.aws/start/getting-started/setup/q/integration/ios/#prerequisites https://docs.amplify.aws/start/getting-started/setup/q/integration/ios/#prerequisites docs.amplify.aws 시작하기 전에 node와 npm을 설치하였다. (Terminal에서 node만 설치해도 npm은 자동으로 설치됨) //node 설치 brew node install 그 후 amplif..
2023.05.14 -
Table View - 여러 정보를 TableViewCell을 이용하여 표현할 수 있는 View TableView Function - Delegate와 DataSource 선언 ※ viewDidLoad에서 Delegate / DataSource 선언해야함! override func viewDidLoad() { super.viewDidLoad() self.tableView.delegate = self self.tableView.dataSource = self } - numberOfRowsInSection : TableView의 아이템 개수를 return - cellForRowAt : TableViewCell의 객체(인스턴스, 뷰)를 return, 메모리 때문에 deque를 이용하여 cell을 재사용 - h..
[iOS] TableViewTable View - 여러 정보를 TableViewCell을 이용하여 표현할 수 있는 View TableView Function - Delegate와 DataSource 선언 ※ viewDidLoad에서 Delegate / DataSource 선언해야함! override func viewDidLoad() { super.viewDidLoad() self.tableView.delegate = self self.tableView.dataSource = self } - numberOfRowsInSection : TableView의 아이템 개수를 return - cellForRowAt : TableViewCell의 객체(인스턴스, 뷰)를 return, 메모리 때문에 deque를 이용하여 cell을 재사용 - h..
2023.01.24 -
Archive Distribution에서 발생 1. Invalid Bundle contains disallowed nested bundles 2. Invalid Bundle contains disallowed file ‘Frameworks’ -> App Extension Target - [Build Phaes] - [Run Script] cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/" if [[ -d "Frameworks" ]]; then rm -fr Frameworks fi 출처 : https://stackoverflow.com/questions/25777958/validation-error-invalid-bundle-the-..
Invalid bundle contains disallowed nested bundlesArchive Distribution에서 발생 1. Invalid Bundle contains disallowed nested bundles 2. Invalid Bundle contains disallowed file ‘Frameworks’ -> App Extension Target - [Build Phaes] - [Run Script] cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/" if [[ -d "Frameworks" ]]; then rm -fr Frameworks fi 출처 : https://stackoverflow.com/questions/25777958/validation-error-invalid-bundle-the-..
2023.01.05 -
- info.plist에서 [Information Property List] - [LSApplicationQueriesSchemes] - [Array]로 생성 - Array Element에 string Type에 Scheme 추가 let kakaoTalk = "kakaotalk://" let kakaoTalkURL = NSURL(string: kakaoTalk) if (UIApplication.shared.canOpenURL(kakaoTalkURL! as URL)) { UIApplication.shared.open(kakaoTalkURL! as URL) } else { print("No kakaotalk installed.") } 출처 [iOS] Swift를 사용하여 카카오톡 앱을 실행하는 방법 📲 (U..
[Swift] 다른 앱 실행시키기- info.plist에서 [Information Property List] - [LSApplicationQueriesSchemes] - [Array]로 생성 - Array Element에 string Type에 Scheme 추가 let kakaoTalk = "kakaotalk://" let kakaoTalkURL = NSURL(string: kakaoTalk) if (UIApplication.shared.canOpenURL(kakaoTalkURL! as URL)) { UIApplication.shared.open(kakaoTalkURL! as URL) } else { print("No kakaotalk installed.") } 출처 [iOS] Swift를 사용하여 카카오톡 앱을 실행하는 방법 📲 (U..
2022.12.04 -
통화로 - 환율계산기 - 원화를 다른 통화로 바꿔줍니다. - 실시간으로 환율을 확인하여 가격을 알 수 있습니다. apps.apple.com UI 기능 - MVVM 패턴 이용 - 원화(KRW)를 다른 통화 화폐를 선택하여 환율 계산 Error - json parsing 오류 func parseJSON(_ response: DataResponse){ switch response.result{ case .success(_): let json = try! JSONSerialization.jsonObject(with: response.data!, options: []) as! [[String:Any]] self.lists = json if let list = self.lists as? [[String:Any]..
[iOS] 환율계산기통화로 - 환율계산기 - 원화를 다른 통화로 바꿔줍니다. - 실시간으로 환율을 확인하여 가격을 알 수 있습니다. apps.apple.com UI 기능 - MVVM 패턴 이용 - 원화(KRW)를 다른 통화 화폐를 선택하여 환율 계산 Error - json parsing 오류 func parseJSON(_ response: DataResponse){ switch response.result{ case .success(_): let json = try! JSONSerialization.jsonObject(with: response.data!, options: []) as! [[String:Any]] self.lists = json if let list = self.lists as? [[String:Any]..
2022.12.04 -
URLComponent - URL의 scheme값을 추가 할 때 사용 var componentsURL = URLComponents(string: addressTextField.text!) componentsURL?.path = "접속 주소 이후 값" componentsURL?.queryItems = [ URLQueryItem(name: "userid", value: userID), URLQueryItem(name: "userpw", value: userPW) ] let requestURL = URL(string: (componentsURL?.string!)!)
[Swift] URLComponentURLComponent - URL의 scheme값을 추가 할 때 사용 var componentsURL = URLComponents(string: addressTextField.text!) componentsURL?.path = "접속 주소 이후 값" componentsURL?.queryItems = [ URLQueryItem(name: "userid", value: userID), URLQueryItem(name: "userpw", value: userPW) ] let requestURL = URL(string: (componentsURL?.string!)!)
2022.11.20