본문 바로가기 메뉴 바로가기

기도하지말고 행동하라

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

기도하지말고 행동하라

검색하기 폼
  • 분류 전체보기 (81)
    • Development Note (74)
      • Unity (5)
      • Golang (5)
      • Android (27)
      • iOS (35)
      • Flutter (2)
    • Project (0)
    • Workout (0)
    • Travel (7)
      • 국내여행 (4)
      • 해외여행 (3)
  • 방명록

Development Note/iOS (35)
[Xcode] ios framework 프로젝트 만들기

앱을 포함한 라이브러리 프로젝트 생성 Workspace 를 생성하여 라이브러리와 앱 프로젝트를 생성하는 방식. 우선 빈폴더를 만들고 프로젝트 이름을 정합니다. File > New > Workspace...을 클릭합니다. Workspace 이름을 지정하고 Save. File > New > Project...을 클릭합니다. 먼저 앱 프로젝트를 생성하겠습니다.(순서는 상관없음) Product Name 을 정하고 Interface, Life Cycle, Language 각자 선호도에 맞게 선택합니다. Add to, Group 모두 타겟을 처음 만든 Workspace 를 선택해줍니다.(Framework 생성도 똑같음) Framework 도 동일하게 진행하게 되면 프로젝트 폴더구조는 다음과 같습니다.

Development Note/iOS 2021. 1. 6. 15:44
[mac] 사용하지 않는 CoreSimulator 삭제하기

목록 확인하기 xcrun simctl list devices삭제하기 xcrun simctl delete unavailable

Development Note/iOS 2020. 12. 30. 11:50
[objc/swift] 최상위 최상단 레이어 ViewController 가져오기

Objective-c + (UIViewController*) topMostController { UIViewController *topController = [UIApplication sharedApplication].keyWindow.rootViewController; while (topController.presentedViewController) { topController = topController.presentedViewController; } return topController; }Swift 3.0+ func topMostController() -> UIViewController? { guard let window = UIApplication.shared.keyWindow, let root..

Development Note/iOS 2020. 9. 9. 17:03
[objective-c] navigationController 안에서 UIViewController 제거하기

navigationController 에서 생성한 UIViewController 를 제거하고 앞단으로 빠져나오고 싶을때 [self.navigationController popViewControllerAnimated:YES];

Development Note/iOS 2020. 9. 9. 16:58
[objective-c] enum 을 nsstring 으로 변환 출력 형변환

찾아봐도 objc는 c++ c# java 처럼 enum에서 nsstring 으로 자료형캐스팅은 안되는것 같다 시간이 없기에 이와 같은 방식으로 처리함. 선언부 #import typedef NS_ENUM(NSInteger, LoginType) { GOOGLE, FACEBOOK, APPLE, GUEST, }; NS_ASSUME_NONNULL_BEGIN @interface EnumType : NSObject + (NSString*) convertToString:(LoginType)type; @end NS_ASSUME_NONNULL_END구현부 #import "EnumType.h" @implementation EnumType + (NSString*) convertToString:(LoginType) type {..

Development Note/iOS 2020. 9. 2. 11:00
[objective-c] 디바이스의 ios 버전 가져오기

+ (NSString*) getSystemVersion { return [[UIDevice currentDevice] systemVersion]; } 출처 https://stackoverflow.com/questions/7848766/how-can-we-programmatically-detect-which-ios-version-is-device-running-on

Development Note/iOS 2020. 9. 2. 10:53
[objective-c] 인앱결제시 실패메시지

샌드박스 결제 테스트시 실패메시지 Error Domain=SKErrorDomain Code=0 “iTunes Store에 연결할 수 없음” UserInfo=0x717c7b40 {NSLocalizedDescription=iTunes Store에 연결할 수 없음}여러가지 방법 다 해봤지만 그냥 모든콘텐츠 및 설정 지우기 하는것이 가장 빠르다 테스트 기기는 iOS13.x 이었고 기존계정 로그아웃 안하고도 문제없이 샌드박스로그인이 잘됐다.

Development Note/iOS 2020. 8. 26. 18:59
[objective-c] 절대값 구하기

#import abs(int val); 출처 https://stackoverflow.com/questions/7974888/whats-the-equivalent-of-math-abs-in-objective-c

Development Note/iOS 2020. 8. 14. 11:22
[objective-c] 국가코드 및 국가명 가져오기

+ (NSString*) getCountryCode { NSLocale *currentLocale = [NSLocale currentLocale]; NSString *countryCode = [currentLocale objectForKey:NSLocaleCountryCode]; return countryCode; } // output : KR + (NSString*) getCountryName { NSLocale *locale = [NSLocale currentLocale]; NSString *countryCode = [locale objectForKey: NSLocaleCountryCode]; NSLocale *usLocale = [[NSLocale alloc] initWithLocaleIdentif..

Development Note/iOS 2020. 8. 13. 19:17
[objective-c] 언어코드 가져오기

+ (NSString*) getLanguageCode { NSString *language = [[NSLocale preferredLanguages] firstObject]; NSDictionary *languageDic = [NSLocale componentsFromLocaleIdentifier:language]; NSString *preferredLanguageCode = [languageDic objectForKey:@"kCFLocaleLanguageCodeKey"]; return preferredLanguageCode; } //output : ko 출처 https://stackoverflow.com/questions/3910244/getting-current-device-language-in-ios

Development Note/iOS 2020. 8. 13. 19:14
이전 1 2 3 4 다음
이전 다음
공지사항
  • 개인정보처리방침
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • 깃허브 주소
  • 기술 블로그 주소
TAG
  • DeviceModel
  • abs
  • abs 함수
  • java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line
  • nsurl to nsstring convert
  • 퍼미션체크
  • tempdir
  • tempfile
  • Golang
  • LanguageCode
  • Error Domain=SKErrorDomain Code=0
  • NSUserDefaults 예제
  • countryName
  • iTunes Store에 연결할 수 없음
  • setCancelable vs setCanceledOnTouchOutside
  • convert nsurl to nsstring
  • permissionCheck
  • 절대값함수
  • Locale.getDefault().getLanguage()
  • ioutil
  • countryCode
  • nsurl 에서 nsstring 변환
  • dialog
more
«   2025/12   »
일 월 화 수 목 금 토
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바