import UserNotifications func goPushAlarm(){ let content = UNMutableNotificationContent() content.title = "🎙✨강의 녹음할 시간이에요🎙✨" content.subtitle = "지금은 미적분학 수업을 녹음할 시간입니다! 시험기간을 위해서 미리 녹음해주세요😚" content.body = "11:00 AM ~ 1:00 PM 미적분학" var date = DateComponents() date.hour = 00 date.minute = 40 let trigger = UNCalendarNotificationTrigger(dateMatching: date, repeats: true) let request = UNNotificatio..
Github는 여러명이 동시에 한 프로젝트의 코드를 쓸 때, 버전관리를 위해서 주로 사용하는 툴입니다. 저는 주로 혼자 개발하기 때문에, 먼저 로컬 xcode에서 작업을 하다가, 아 github에 올려야지..하고 그때야 깃헙에 올리는 경우가 많은데요! 처음부터 github 세팅을 마치고 시작하는게 이상적이긴 하지만, 이 프로젝트가 github에 올릴만큼 오래 지속할 프로젝트인지 모르니, 적당히 작업을 하다가 올리게 되더라고요! 아무튼 '작업중인 xcode 프로젝트'를 깃허브에 연동하는 방법은 다음과 같아요. 그 전에, 프로젝트를 만들 때, Create Git repository on my Mac 에 이미 체크를 했었어야 해요!!!!!!! git을 좀 아시는 분들을 위해 설명을 조금 덧붙여보자면, 이 과정..
어케 해결할지 고민하다가 깃헙에 있는 글을 보고 따라해보기로 했다. The only way to get a static UITableView along with other controls on the same screen is to use a Container View. Follow this way, it works perfectly: Drag a ViewController onto your storyboard. Drag a TableViewController onto your storyboard. Next Drag a Container view to your ViewController and size it about the size you want (smaller than the view) -> whe..
https://www.iosinsight.com/inline-uidatepicker-swift-uiviewcontroller/ Inline UIDatePicker In Swift With UIViewController | iOS Insight This tutorial walks through implementing two inline UIDatePicker controls for selecting date/time values, and is written in Swift. There are examples out there that demonstrate an inline UIDatePicker. However, I’ll be illustrating some key additional featu www.i..
1. class PhotoViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate UIImagePickerControllerDelegate와 UINavigationControllerDelegate를 채택해준다 2. let picker = UIImagePickerController() 3. viewDidLoad에서 picker.delegate = self 4. addPhoto함수에서 UIAlertController와 UIAlertAction을 만들어서 controller에 action을 붙이고, controller을 present해준다. let actionSheet = UIAlertCont..