전체 글380 iOS 애플로그인 - Apple Login 예제 iOS 애플로그인 - Apple Login 예제 LoginVC.h 0.Target => Siging & Capabilitis => Sign In with Apple 체크 1.AuthenticationServices 라이브러리 import 2.ASAuthorizationControllerDelegate, ASAuthorizationControllerPresentationContextProviding 프로토콜 채택 3.스택뷰 IBOutlet 변수 생성 #import #import NS_ASSUME_NONNULL_BEGIN @interface LoginVC : UIViewController @property (strong, nonatomic) IBOutlet UIStackView *stackView; @end.. 2021. 2. 17. iOS KeyChain 예제 - 키체인 iOS KeyChain 예제 KeychainItemWrapper.h #import /* The KeychainItemWrapper class is an abstraction layer for the iPhone Keychain communication. It is merely a simple wrapper to provide a distinct barrier between all the idiosyncracies involved with the Keychain CF/NS container objects. */ @interface KeychainItemWrapper : NSObject // Designated initializer. - (id)initWithIdentifier: (NSString *)ide.. 2021. 2. 16. iOS Geofencing 예제 - 특정위치 안에 들어갔을때 알림(NSCoding, UserNotification) iOS Geofencing 예제 - 특정위치 안에 들어갔을때 알림(NSCoding, UserNotification) ✅ 구현 기능 1.알림을 받을 위치 지정하기(반경 + note 지정) 2.알림 받을 위치 어노테이션(마커) 표시하기 3.지도에서 어노테이션 클릭시 정보 표출 + 삭제가능 4.지정한 위치에 들어갔을때 or 벗어났을때 알림 기능 0.StoryBoard ✅ 유틸 클래스 구현 1. 커스텀 Alert 알림창 유틸 2. 지도 확대 유틸 Utilities.h #import @import UIKit; @import MapKit; @interface Utilities : NSObject //1.커스텀 알림창 띄우기 + (void)showSimpleAlertWithTitle:(NSString *)title .. 2021. 2. 15. iOS 배달앱 개발 예제(2) - (feat. 마커표시 MKAnnotation, CLLocationManagerDelegate, MKMapViewDelegate) iOS 배달앱 개발 예제(2) - (feat. 마커표시 MKAnnotation, CLLocationManagerDelegate, MKMapViewDelegate) ✅ 이번 포스팅에서 구현할 기능 1.특정 위치에 어노테이션(마크) 표시 2.어노테이션(마크) 클릭시 위치정보 표시 3.어노테이션 왼쪽에 이미지 넣기 4.어노테이션 오른쪽에 상세정보 버튼 넣기 5.상세정보 버튼 클릭시 alert 창 띄워주기 ✅ 어노테이션(마커) 클래스 생성 1.어노테이션(마커) 관련 변수 및 초기화 메소드 구현 Pin.h #import @import MapKit; //핀 객체 //마커(어노테이션)에 쓰일 객체. NS_ASSUME_NONNULL_BEGIN @interface Pin : NSObject //아래 변수 세개는 어노테이.. 2021. 2. 15. Apache Tomcat 연동&mod_jk 설정 아파치 톰캣Apache Tomcat 연동&mod_jk 설정 목표 : html 파일은 아파치 웹서버에서 처리하고, jsp 파일은 톰캣 서버가 처리하도록 설정한다! 순서 1.U_WAS01 서버에 톰캣 설치 + AJP protocol 커넥트 설정 2.U_WEB01, U_WEB02 서버에 아파치 설치 + mod_jk 설치 & 설정 [1]아파치 톰캣 설치 apt search tomcat | grep tomcat[89] apt -y install tomcat8 tomcat8-docs tomcat8-examples [2] 톰캣 서비스명 확인 systemctl | grep tomcat [3] 톰캣 상태 확인 systemctl status tomcat8 netstat -nlt [4] AJP protocol 커넥트 설정 .. 2021. 2. 15. mac VirturBox 네트워크 설정(ssh 외부접속) mac VirturBox 네트워크 설정 0.virtualBox 다운로드 www.virtualbox.org/wiki/Downloads 1.우분투 18.04.5 LTS 디스크 이미지 다운로드 경로 releases.ubuntu.com/18.04/ 2.virturalBox -> 새로 만들기 -> 저장소 -> IDE 세컨더리 마스터 -> ubuntu18 디스크 이미지 선택 3.네트워크 설정 우분투 이미지 선택 -> 파일 -> 호스트 네트워크 관리자 -> 아래처럼 호스트 네트워크 추가해준다.(ip는 192.168.0.1 로 주었다.) 3-1 네트워크 어댑터 1은 NAT으로 설정해준다. 3-2 네트워크 어댑터 2은 위에서 설정한 호스트 전용 어댑터로 설정해준다. 4-1 우분투 터미널 vim /etc/netplan/0.. 2021. 2. 14. iOS 배달앱 개발 예제(1) - (feat. CoreLocation, NSTimer, NSURLSession) iOS 배달앱 개발 예제(1) - (feat. CoreLocation, NSTimer, NSURLSession) 목표 : CoreLocation, NSTimer, NSURLSession 을 이용해서 배달앱의 핵심 기능인 위치정보를 얻어서 서버로 전송하는 예제를 구현해본다. 1.근태화면에서 출근 버튼을 누르면 현재 위치가 3초 간격으로 서버에 전송된다. 2.출동화면에서 출동 버튼을 누르면 현재 위치가 3초 간격으로 서버에 전송된다. 3.CoreLocation 라이브러리를 이용해서 싱글톤 객체로 만들어서 현재 위치를 가져온다. 4.NSURLSession 은 delegate 패턴을 이용해서 Get 메소드 호출이 성공했을때나 실패했을때 , Delegate 메소드가 호출되게 한다. 화면 0.공통로직 CoreLoc.. 2021. 2. 9. iOS CoreLocation 공통 모듈 - 싱글톤 iOS CoreLocation 공통 모듈 - 싱글톤 1.CoreLocation 관련 라이브러리 추가 2.info.plist에 위치 동의관련 key value 값 입력 CoreLocation.h #import #import #import NS_ASSUME_NONNULL_BEGIN @interface CoreLocation : NSObject //CoreLocation 이 객체를 참조하는 카운터 @property (readwrite) NSInteger refNum; //로케이션 매니져 전역 변수 @property (nonatomic, retain) CLLocationManager *locationManager; //싱글톤 패턴 +(CoreLocation *) sharedSingleton; //지정 초기화 메.. 2021. 2. 9. iOS 최상위뷰 체크 예제 - Curent RootViewController iOS 최상위뷰 체크 예제 - Curent RootViewController 용어 정리 1.rootViewController : 앱 최초 생성시 존재하는 ViewController. (앱을 실행시켰을때 처음 실행되는 뷰 컨트롤러). 2.presentedViewController : 그 위에 올려져 있는 뷰 컨트롤러. applicationWillResignActive 메소드에서 현재 띄워진 뷰컨트롤러(rootViewController)를 파라미터로해서 visibleViewController 메소드의 인자로 넘긴다. visibleViewController 메소드 안에서는rootViewController.presentedViewController 를 isKindOfClass 메소드를 이용해서 네비게이션 컨트롤.. 2021. 2. 8. 이전 1 ··· 18 19 20 21 22 23 24 ··· 43 다음