본문 바로가기

개발/ios

(5)
Swift 기본 문법과 데이터 타입 스위프트(Swift)는 애플(Apple)에서 개발한 새로운 프로그래밍 언어로, iOS, macOS, watchOS, tvOS 등 다양한 애플 플랫폼에서 개발을 위해 사용됩니다. 이번 글에서는 스위프트의 기본 문법과 데이터 타입에 대해 예제를 통해 알아보려고 합니다. 1. 변수와 상수 변수와 상수는 데이터를 저장하기 위해 사용되며, 스위프트에서는 다음과 같이 선언할 수 있습니다. var name = "John" let age = 25 위의 예제에서 `name`은 변수로 값을 변경할 수 있고, `age`는 상수로 한 번 선언된 값을 변경할 수 없습니다. 변수와 상수의 사용법을 예제를 통해 확인해봅시다. 2. 데이터 타입 스위프트에서는 다양한 데이터 타입을 제공합니다. 몇 가지 예제를 통해 각 데이터 타입을 ..
[Swift] EXC_BREAKPOINT (SIGTRAP) 앱이 특정 케이스에서 crash 되는 오류가 발생. 오류를 보니 EXC_BREAKPOINT 라는 exception이 발생했다. Apple Developer Documentation developer.apple.com 애플 문서를 보면,, trace trap이 특정 지점에 프로세스를 중단했다는 말이라고 하는데.. swift 런타임은 복구할 수 없는 오류가 발생했을 경우 trace trap을 사용해서 프로세스를 중단시킨다고 한다. https://developer.apple.com/documentation/xcode/addressing-crashes-from-swift-runtime-errors Apple Developer Documentation developer.apple.com 관련 문서를 보면 nil ..
[Swift] hierarchy 문제 AController(UINavigationController). topViewController = BController(UIViewController) 로 호출한 뷰컨트롤러를 다시 호출할 경우 계층 문제 발생하며 컨트롤러가 로드되지 않는 문제 발생. 뷰 컨트롤러 호출하기 전에 현재 호출된 뷰 컨트롤러 체크 후 동일한 뷰컨트롤러이면 dismiss 하도록 수정 let pvc = self.presentedViewController //현재 컨트롤러가 UINavigationController 니? if let nc = pvc as? UINavigationController, nc.viewControllers.count > 0 { //고렇다면 현재컨트롤러의 topViewController가 BControlle..
[IOS/Swift] 앱 심사 거절 사유 - Guideline 2.1 - Performance - App Completeness We're looking forward to completing our review, but we are unable to continue because your app crashed during review. Please review the details below and the attached crash logs, then complete the next steps. Steps leading to crash: 1. Launched the app 2. Entered ID and Password and tapped the login 3. Tapped “마이페이지” button 4. Chose “1:1 문의” 5. Tapped “Choose File” 6. Chose “Take Photo or video”..
[IOS/Swift] 앱 심사 거절 사유 - 4.2.0 Design: Minimum Functionality 웹뷰로 구성된 앱을 심사요청하였는데 아래와 같은 메시지를 받았다 Your app provides a limited user experience as it is not sufficiently different from a mobile browsing experience. As such, the experience it provides is similar to the general experience of using Safari. Including iOS features such as push notifications, Core Location, and sharing do not provide a robust enough experience to be appropriate for the App Store. ..

반응형