Swift - 외부라이브러리 사용 출처 : DLRadioButton Seorenn SIGSEGV: Swift 프로젝트에서 Objective-C 코드를 함께 사용하기 외부라이브러리 파일 추가 파일 추가 옵션 선택 브릿지 헤더 파일 생성 브릿지 헤더 파일 설정 자동으로 설정되지만 설정이 되지 않았을 경우 아래와 같이 설정 필요 Button Type 변경 Button Type 변경 전 Button Type 변경 후 Button 라디오버튼의 경우 그룹으로 묶기 Button 라디오버튼 하나의 이벤트 생성 Button 라디오버튼 이벤트 구현 @IBAction func optionClicked(_ sender: DLRadioButton) { print(sender.currentTitle!) if (sender == ..
출처 : Freehand drawing on iOS in Swift - Ilya Puchka override func touchesBegan(_ touches: Set, with event: UIEvent?) { if let touch = touches.first { messageLabel.text = "touchesBegan" tapCountLabel.text = String(touch.tapCount) touchCountLabel.text = String(touches.count) lastPoint = touch.location(in: drawImageView) } } override func touchesMoved(_ touches: Set, with event: UIEvent?) { if let ..
출처 : Swift 에러 (Error) 처리, 예외 상황 다루기 (try, throws, defer 등) : 네이버 ... enum ParseError : Error { case OverSize case UnderSize case InvalidFormat(value : String) case InvalidData(value : String) } 예외발생 func parseTime(timeString : NSString) throws -> Time { var retTime = Time(hour : 0, min : 0, sec : 0) guard timeString.length == 8 else { if timeString.length > 8 { throw ParseError.OverSize } else {..
- Total
- Today
- Yesterday
- 일본여행
- Delphi
- oracle
- ffmpeg
- flex
- 지스타2007
- Xcode
- 송주경
- BPI-M4
- Linux
- SAS
- KOBA
- Mac
- ubuntu
- MySQL
- ble
- sas2009
- 동경
- 레이싱모델 익스트림 포토 페스티벌
- android
- Java
- koba2010
- 튜닝쇼 2008
- Spring MVC
- Spring
- NDK
- 서울오토살롱
- 전예희
- JavaScript
- Delphi Tip
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |