iOS192 [iOS Issue] UIView.animate에서 constraint 변경 동작 안함 How do I animate constraint changes? I'm updating an old app with an AdBannerView and when there is no ad, it slides off screen. When there is an ad it slides on the screen. Basic stuff. Old style, I set the frame in an animation bloc... stackoverflow.com 아래와 같이 Constraint의 constant 값을 수정해서 UIView의 크기를 조절하는 애니메이션 함수를 만들었다. // // ViewController.swift // Practice // // import UIKit class ViewContr.. 2022. 3. 5. [iOS] addSubView를 할 때 weak, strong 레퍼런스 Is UIView superview property weak or strong? The UIView header states that superview property is strong open var superview: UIView? { get } But it behaves just like a weak property, i.e. if I create view1 and view2 and then call view1.addSu... stackoverflow.com addSubView를 할 때 weak, strong 레퍼런스 코드에서 특정한 UIView를 addSubView를 이용해서 subView로 추가할 때, Memory leak에 대한 걱정으로 해당 subview를 weak로 선언할지 strong으로.. 2022. 2. 19. [iOS Issue] Core data: Failed to load model Core data: Failed to load model I am new to core data. What I am trying to DO: I am trying to create a cocoatouch framework that has an app to add employee details and display them in a table view. So that i can add this framewo... stackoverflow.com 코어 데이터 사용 도중 다음과 같은 에러가 떴다. Core data: Failed to load model 1. Entity 확인 DataModel에서 Entity들을 클릭해서 Module이 'Current Product Module'로 되어있는지 확인한다. 2. .. 2022. 2. 19. [iOS Issue] Http URL 사용 시 Error Domain=NSCocoaErrorDomain Code=256 [IOS] XCODE 7, IOS 9, Error Domain=NSCocoaErrorDomain Code=256 XCODE 7 IOS 9 으로 업데이트 했더니 잘 작동 하던 로직에서 에러가 발생 한다. NSError *error = nil; NSString *str_dat = [NSString stringWithContentsOfURL:UpdateChkUrl encoding:NSUTF8StringEncoding err.. blog.daum.net Http URL을 사용해서 네트워킹 시도 시 다음과 같은 에러가 발생한다. Error Domain=NSCocoaErrorDomain Code=256 URL을 Https로 변경해주거나 아니면 아래와 같이 info.plist에 항목을 추가해주고 HTTP 프로토콜을 .. 2022. 2. 19. 이전 1 ··· 22 23 24 25 26 27 28 ··· 48 다음