태그>swift(총 119개의 글)
'swift' 관련 최근글
-
- swift struct를 Hashable로 만들어서, dictionary key로 쓰기

-
공부가 본업. by 언제나19|2014/10/06 22:19
struct에서Hashable을 그냥 못 구현한다. =는 따로 global func로 작성하기 Operator overloading not yet supported? hashValue는 extension으로 작성하기 struct Binomen { let genus: String let species: String}// MARK: Hashableextension Bin..
- swift struct를 Hashable로 만들어서, dictionary key로 쓰기
-
- presentedViewController의 배경을 투명하게 만들기

-
공부가 본업. by 언제나19|2014/09/30 15:41
에는 잘 될 것처럼 적혀 있는데, 실제로는 잘 안되네. Display clearColor UIViewController over UIViewController ios7에서는 가장 위 view controller에 .CurrentContext를 setting하기.tabBarController나 navigationController 같은 거. self.modalPresenta..
ios, modal, UIModal, UIModalPresentation, presentViewController
- presentedViewController의 배경을 투명하게 만들기
-
- swift에서 ios Realm 써 보면서 장단점 적기

-
공부가 본업. by 언제나19|2014/09/21 17:03
ios에서 realm이라는 persistent store가 나왔다.엄청 빠르다고 자랑하고 있다.ORM까지 포함돼 있는 것이 장점. 처음에 swift project에 추가하는게 잘 되지 않았다.SwiftyJSON에서 이미 top-level(?) extension을 쓰고 있기 때문에, 이것이랑 충돌 안나는 사용법으로..
realm, ios, store, persistent, database
- swift에서 ios Realm 써 보면서 장단점 적기
-
- swift에서 CocoaLumberjack 사용해서 logging

-
공부가 본업. by 언제나19|2014/09/12 20:08
swift에서는 macro를 쓸 수 없으니까 objective c code를 사용하고, bridge를 만든다. 에 설명이 있는데, 이것만으로 불충분하다_FILE_ 등이 DDLogDebug가 있는 file로 출력되기 때문에 아무 도움이 안된다. swift에서 _FILE_을 passing하고,DDLogDebug ma..
- swift에서 CocoaLumberjack 사용해서 logging
-
- swift code generation tool 만들기 조사

-
공부가 본업. by 언제나19|2014/09/11 14:55
Xcode Snippetssnippet으로는 동적인 code 생성 실패. 일단, text를 선택하고, 그 다음 동작을 정의할 수 있으면 되겠다. automator를 쓰기http://blog.carbonfive.com/2011/03/10/code-formatting-in-xcode-4/ “Sort Lines in Selection” for Xcode 4 또는 ..
- swift code generation tool 만들기 조사
-
- xcode3, 4에서 swift debugging 불편해 죽겠네

-
공부가 본업. by 언제나19|2014/07/30 22:39
(lldb) po aerror: :11:5: error: use of unresolved identifier '$_lldb_injected_self' $_lldb_injected_self.$_lldb_wrapped_expr_2( ^ (lldb) frame variable -L self self = Printable, DebugPrintable 출력도 잘 안되는 것 같고. Printable123456/// ..
- xcode3, 4에서 swift debugging 불편해 죽겠네
-
- objective c property getter setter를 swift에서 override하기

-
공부가 본업. by 언제나19|2014/07/24 16:06
Swift Programming: getter/setter in stored property override var rank: Int = 0 { didSet { // Say 1000 is not good for you and 999 is the maximum you want to be stored there if rank >= 1000 { rank = 999 } }} 말대로 거의 되긴 하는데, super를 부..
- objective c property getter setter를 swift에서 override하기
-
- UIButton에 target action을 swift code로 추가하기

-
공부가 본업. by 언제나19|2014/07/21 21:29
".:" :를 빼먹지 말기. #//apple_ref/doc/uid/TP40014216-CH4-XID_36 import UIKitclass MyViewController: UIViewController { let myButton = UIButton(frame: CGRect(x: 0, y: 0, width: 100, height: 50)) init(nibName nibNameOrNil: String..
- UIButton에 target action을 swift code로 추가하기
-
- xcode 6 beta 3 compiler swift extension bug

-
공부가 본업. by 언제나19|2014/07/21 17:37
xcode 6 beta 3에서 extension에 calculated var (property)를 작성했더니, swift compiler가 seg fault로 죽는다. -0- 0 swift 0x000000010432fde8 llvm::sys::PrintStackTrace(_sFILE*) + 401 swift 0x00000001043302d4 SignalHandler(int) + 4522 libsystem_platfor..
- xcode 6 beta 3 compiler swift extension bug
-
- swift static library a file Makefile로 추가하기

-
공부가 본업. by 언제나19|2014/06/30 19:27
error: /Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `X' in: -XlinkerUsage: /Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/..
- swift static library a file Makefile로 추가하기
-
- swift에서 json파일을 text로 읽어서 NSDictionary로 저장하기

-
공부가 본업. by 언제나19|2014/06/26 22:22
swift에서 파일 읽기 Read and write data from text file bundle을 지정하려면 NSBundle(forClass: .self) Swift class introspection & genericsNSString.self How do I parse an array inside parsed JSON in Swift? How do i convert a JSON Strin..
- swift에서 json파일을 text로 읽어서 NSDictionary로 저장하기
-
- XCTest in swift

-
공부가 본업. by 언제나19|2014/06/26 22:21
WWDC 2013, 2014 video를 보고 시작.Testing in Xcode 5https://developer.apple.com/videos/wwdc/2013/ Testing in Xcode 6https://developer.apple.com/videos/wwdc/2014/ How do I import a Swift file from another Swift file? import .-Bridging-Head..
- XCTest in swift




