목록IOS (34)
NewGen

초간단 도움말 페이지. * 너튜브 링크 만 동작합니다. * 너튜브 목록 플레이 혹은, 목록에서 가져온 링크는 동작하지 않습니다. * 반드시 하나씩 된 영상에서 링크를 가져와야 합니다. 1. 너튜브 페이지로 진입. 2. 원하는 영상이 나오면 롱터치를 해서 링크를 복사합니다. 3. 로컬저장 페이지로 진입. 4. 아래 그림처럼 링크 붙여넣고, 그 아래 칸에 자신만의 리스트명 입력(아래 리스트 선택 또는 직접 입력하면 새로 생성), 후 아래 버튼 누르면 끝. 5. 아래 리스트옆 > 버튼 누르면 폴더내 리스트 뷰 페이지로 이동. 6. 감상.
ios 버전별로 현재 점유율이 얼마나 진행되고 있는지 확인 가능한 공식 사이트 이다. 의외로 개발하다보면, 버전별로 문제점이 다르게 나타남. == iOS 버전별 점유율 확인 https://developer.apple.com/kr/support/app-store/ App Store - 지원 - Apple Developer App Store App Store에서 Mac, iPhone, iPad, Apple Watch 및 Apple TV용 앱을 쉽게 찾고 구입하고 다운로드할 수 있습니다. 앱을 배포할 준비가 되면, 앱을 빌드하고 App Store에 배포하는 데 필요한 모든 것을 App developer.apple.com
* get top Viewcontroller guard let window = UIApplication.shared.keyWindow, let rootViewController = window.rootViewController else { print("get error") return } var topController = rootViewController while let newTopController = topController.presentedViewController { topController = newTopController } print("TOP=\(topController)") 의외로 많이 쓰임. 프로토콜로 전달하기 애매할때는, 탑 뷰컨트롤러 찾아서 바로 코드 실행해야 할때.. 백그라운드서..

1. connect iphone to Mac via USB. 2. run Xcode 3. Select Window -> Devide and Simulators. 4. Check "Conect via network" 5. unplug usb cable and restart Xcode. 6. Select Window -> Devide and Simulators. and find your iphone and right click on yours. 7. select "connect via IP Address" 8. enter your iphone ip address. 9. Run and debugging on Xcode. It will download via wifi and can do debugging.
Xcode 버전에 따른, AppDelegate.swift @main annotation 처리. 최신 버전(현재: Version 12.3 (12C33)) 에서는 AppDelegate.swift에서 main 시작점 부분 표시가. //@main class AppDelegate: UIResponder, UIApplicationDelegate { } 이렇게 되어 있슴. 이렇게 최신버전의 Xcode 에서 작성된 소스를 구형 버전의 Xcode(11.5 에서 에러 발생.) 에서 에러가 발생함. @main

늘 기본이 중요하다고 생각함. 늘 기초를 연습해두어야 함. 대략 저렇게... 문제가 주어지고.. 처음에는 다리길이만큼 Queue Array로 잡고 무게값 총합을 계속 계산하면서 돌았더님나..시간초과가 계속 걸려서.. 그냥 총량을 더하고 뺄때마다 변수하나에 저장하여 돌리니 시간초과가 안걸렸슴 코드 func solution(_ bridge_length:Int, _ weight:Int, _ truck_weights:[Int]) -> Int { var test : [Int] = truck_weights var t : Int = 0; if(test.count == 1) { return bridge_length+1 } var time_arr : [Int] = [Int](repeating: 0, count: brid..

Obj-c 클래스 생성 및 호출이용 클래스 선언 기본 @interface Custom_Class_Name : SuperClass_Name { //변수 } +(void)func1: (int)in_num; //+ c++에서 static -(void)func2 : (NSString*)in_str; //- : general class member func. @end * Header file #ifndef test_objc_h #define test_objc_h #import @interface testObjClass : NSObject { NSString* str1; //ARC mode on이므로 자동으로 메모리 관리가 들어감. NSString* str2; int nNum1; NSString* testStr1;..

스택 큐 연습인데.. 사실 문제를 이해하는게 더 중요한듯 함. 처음에 대충 읽고 했다가 헤멨슴.. 배열 일괄 계산을 이용하면 좀더 간단해짐. solodevlab.tistory.com/1191 ios - array 일괄계산 let a: [Int] = [90,30,55] let b : [Int] = [1,30,5] 배열 두개 각 원소끼리 연산을 해야 할때... zip사용... for 문 돌려서 할꺼를 아래와 같이 일괄 처리 하면 1줄로 끝낼 수 있슴. arr_a = zip(prog,per).map(.. solodevlab.tistory.com 소스코드