跳到主要內容

發表文章

Amazfit GTR 3 PRO

最近的文章

iOS json Decodable

  不知道做了什麼,但先留著 protocol DecodableDefaultSource {     associatedtype Value: Decodable     static var defaultValue: Value { get } } enum DecodableDefault {} extension DecodableDefault {     @propertyWrapper     struct Wrapper<Source: DecodableDefaultSource > {         typealias Value = Source . Value         var wrappedValue = Source.defaultValue     } } extension DecodableDefault . Wrapper : Decodable {     init (from decoder: Decoder ) throws {         let container = try decoder.singleValueContainer()         wrappedValue = try container.decode(Value. self )     } } extension KeyedDecodingContainer {     func decode<T>( _ type: DecodableDefault . Wrapper < T >.Type,                    forKey key: Key ) throws -> DecodableDefault . ...

190721人月神話讀後感

專案時程預估通常都不會照常達成,因為他的假設是一切都進行的很順利,但這是不可能的。 用人月來衡量工作規模的大小是危險的,也是一個容易遭到誤解的迷思。 1/3 規劃 1/6 寫程式 1/4 組件測試和早期系統測試 1/4 系統測試,完成所有的組件 Brooks定律: 在一個時程已經落後的軟體專案中增加人手,只會讓它更加落後。 寫程式有如外科手術,只有一個主治醫師 第二系統效應通常都會過度設計 意念的傳達通常比程式的開發更為重要

iOS 20190705

how-to-use-alamofire-with-custom-headers https://stackoverflow.com/questions/25143938/how-to-use-alamofire-with-custom-headers alamofire-post-request-with-headers https://stackoverflow.com/questions/47775600/alamofire-post-request-with-headers Realm how-to-write-a-bool-predicate-in-core-data https://stackoverflow.com/questions/6169121/how-to-write-a-bool-predicate-in-core-data Range operator or OFFSET/LIMIT https://github.com/realm/realm-core/issues/1239 https://realm.io/docs/swift/latest/#updating-objects how-to-get-a-unique-device-id-in-swift https://stackoverflow.com/questions/25925481/how-to-get-a-unique-device-id-in-swift how-can-i-convert-a-realm-object-to-json-in-swift https://stackoverflow.com/questions/32023249/how-can-i-convert-a-realm-object-to-json-in-swift can-i-serialize-a-realmobject-to-json-or-to-nsdictionary-in-realm-for-swift https://stackoverflow.com/questions/31150087/can-i-serialize-a-realmobject-to-json-or-to-nsdictionary-in-realm-for-swift ...

iOS 20190703

custom-uiswitch-with-image https://stackoverflow.com/questions/16281735/custom-uiswitch-with-image FSCalendar https://github.com/WenchaoD/FSCalendar How to Add Prev / Next button for swap month in FSCalendar https://github.com/WenchaoD/FSCalendar/issues/252 How to change Specific dates title Color. https://github.com/WenchaoD/FSCalendar/issues/887 调试FSCalendar过程中发现日历标题从中文变成英文了,怎么改回中文? https://github.com/WenchaoD/FSCalendar/issues/112 JTAppleCalendar https://github.com/patchthecode/JTAppleCalendar How to deselect a selected date cell without using 'allowsMultipleSelection https://github.com/patchthecode/JTAppleCalendar/issues/1074 Single selection not working https://github.com/patchthecode/JTAppleCalendar/issues/895 Realm https://realm.io/docs/swift/latest/#filtering create-csv-file-from-array-of-data-in-ios https://stackoverflow.com/questions/10119035/create-csv-file-from-array-of-data-in-ios how-do-i-share-files-using-share-sheet-in-ios https://stac...

iOS 20190629

PICKER swift-做個選擇吧-uipickerview https://medium.com/@JJeremy.XUE/swift-%E5%81%9A%E5%80%8B%E9%81%B8%E6%93%87%E5%90%A7-uipickerview-8d428ca4fa5d UIPICKER 自訂選擇器 https://chiuchingwei.gitbooks.io/swift-otoall/content/uikit/uipickerview.html done-toolbar-on-uipickerview https://stackoverflow.com/questions/50747343/done-toolbar-on-uipickerview uidatepicker-in-swift-3-and-swift-4-example https://medium.com/@javedmultani16/uidatepicker-in-swift-3-and-swift-4-example-35a1f23bca4b swift-how-to-set-a-default-value-of-a-uipickerview-with-three-components-in-swift https://stackoverflow.com/questions/25917693/swift-how-to-set-a-default-value-of-a-uipickerview-with-three-components-in-swi is-there-a-uipickerview-delegate-method-like-scrollviewdidscroll https://stackoverflow.com/questions/7625625/is-there-a-uipickerview-delegate-method-like-scrollviewdidscroll swift-3-set-date-picker-current-date-and-calculate-difference https://stackoverflow.com/questions/44483363...

iOS 20180624

date-to-milliseconds-and-back-to-date-in-swift https://stackoverflow.com/questions/40134323/date-to-milliseconds-and-back-to-date-in-swift Date Byte  BLE how-to-convert-a-double-into-a-byte-array-in-swift https://stackoverflow.com/questions/26953591/how-to-convert-a-double-into-a-byte-array-in-swift ble-swift-write-characterisitc https://stackoverflow.com/questions/26377615/ble-swift-write-characterisitc round-trip-swift-number-types-to-from-data https://stackoverflow.com/questions/38023838/round-trip-swift-number-types-to-from-data nsdata-from-uint8 https://stackoverflow.com/questions/32455543/nsdata-from-uint8 switch-case-with-range https://stackoverflow.com/questions/52665744/switch-case-with-range how-in-swift-to-convert-int16-to-two-uint8-bytes https://stackoverflow.com/questions/32830866/how-in-swift-to-convert-int16-to-two-uint8-bytes nsdata-to-uint8-in-swift https://stackoverflow.com/questions/31821709/nsdata-to-uint8-in-swift transfer-dat...