IOS
-
문자 발송하기.IOS 2023. 9. 15. 15:51
import MessageUI //sms mail class ViewController: UIViewController ,WKScriptMessageHandler,MFMessageComposeViewControllerDelegate ,MFMailComposeViewControllerDelegate // [비동기 처리 수행] DispatchQueue.main.async { let controller = MFMessageComposeViewController() controller.body = body[1] as! String //문자 내용 if body[0] as! String != "" { // 발송자 번호 모를땐 추가 안함. controller.recipients = [body[0] as! String..
-
문자 클립보드 복사하기.IOS 2023. 9. 15. 15:48
UIPasteboard.general.string = "저장할 문자 작성." if let storedString = UIPasteboard.general.string { print(storedString) let alert = UIAlertController(title: "클립보드 복사", message: "복사 완료 되었습니다.", preferredStyle: UIAlertController.Style.alert) let action = UIAlertAction(title: "확인", style: UIAlertAction.Style.default) alert.addAction(action) self.present(alert, animated: true) }
-
값 저장하고 가져오기IOS 2023. 9. 15. 15:46
if let body = message.body as? Array { print("Received message from JavaScript: \(body)") print("Received message from JavaScript: \(body[0])") print("Received message from JavaScript: \(body[1])") UserDefaults.standard.set(body[0], forKey: "id") //아이디 저장 UserDefaults.standard.set(body[1], forKey: "pw") //비번 저장 let DataID = UserDefaults.standard.string(forKey: "id") print("DataID :\(String(descr..
-
개발자 인증서 , 기기 등록하기 , identifiers 등등등IOS 2017. 2. 13. 17:41
안녕하세요. 앱 스토어에 배포를 원하신다면 http://itdevelop.kr/79 member Center -> Certificates, Identifiers & Profiles Certificates -> IOS App Development -> CSR 파일 생성 [CSR 파일 생성] -- [이동]-[응용프로그램]-[유틸리티]-[키체인 접근] 어플을 실행-- 키체인 접근 어플의 메뉴에서 [키체인 접근]-[인증서 지원]-[인증 기관에서 인증서 요청...] 선택 -- 사용자 이메일과 이름을 입력하고 [디스크에 저장됨]을 누른다.-- 이름저장(Magnexpay (기본네임 : CertificateSigningRequest.certSigningRequest))--> CSR 파일 생성 완료! CSR 파일을 생성..
-
Missing Info.plist keyIOS 2017. 2. 10. 02:11
Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothPeripheralUsageDescription key with a string value explaining to the user how the app uses this data. IOS 배포 과정중에 나온 오류다. 키워드는 Missing Info.plist key NSBluetoothPeripheralUsageDescription 두가지다. 이런 오류가 나왔다면 , 단말기에서 하드웨어를 제어하는 과정이 있는데, info.plist ..
-
앱 스토어(APP STORE) 배포하기IOS 2017. 2. 10. 02:05
*)) 이 글은 2017.02.10 일 기준으로 작성되었으며, 후에 다시 업로드 할 경우 포스팅도 업데이트 될 예정입니다.*)) 2018.04월기준 , 수정된 내용은 없습니다.*)) 2018.05월 전자상거래 , 유료앱 가격설정부분 수정되었습니다. 안녕하세요~~ IOS 어플을 배포해봅시다~ 매번 할때마다 저도 헷갈려서 정리해 놓을게요! - 앱스토어 등록하는 중 , 새로 발급받고 설정할거 하고,.. 그런 과정이 모두 포함되어있습니다.- 때문에 , 처음하시는 분들,전에 했는데 햇갈리는 분들에게 더 도움이 될것같습니다. 이 포스팅은 제가 하면서 막히는 부분부분을 바로 추가하면서 진행했기 때문에 순서가 좀 엉망일 수도 있습니다. - 프로젝트 개발이 모두 끝났고- 배포용 계정을 발급 받았음을 전재로 합니다. ==..
-
tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...IOS 2017. 2. 6. 18:53
tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now... 스레드 안에서 > 스레드 또 호출하거나 , 웹의 자바스크립트를 사용할려고 하니까 나왔다... 스레드에서 메소드를 콜 할땐, [self performSelectorOnMainThread:@selector(CardUpdate) withObject:NULL waitUntilDone:YES]; -(void)CardUpdate{ if(cardnum ==@"" || cardexpmon ==@"" || cardexp..