跳到主要內容

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 自訂選擇器

done-toolbar-on-uipickerview

uidatepicker-in-swift-3-and-swift-4-example

swift-how-to-set-a-default-value-of-a-uipickerview-with-three-components-in-swift

is-there-a-uipickerview-delegate-method-like-scrollviewdidscroll

swift-3-set-date-picker-current-date-and-calculate-difference
https://stackoverflow.com/questions/44483363/swift-3-set-date-picker-current-date-and-calculate-difference


iOS Charts
https://www.appcoda.com/ios-charts-api-tutorial/
https://www.appcoda.com.tw/ios-charts-api-tutorial/

change-label-size-in-ios-charts-library
https://stackoverflow.com/questions/43547495/change-label-size-in-ios-charts-library

swift-ios-charts-set-bar-color-on-highlight
https://stackoverflow.com/questions/35688165/swift-ios-charts-set-bar-color-on-highlight

different-colors-for-bars-in-barchart-depend-on-value
https://stackoverflow.com/questions/40436940/different-colors-for-bars-in-barchart-depend-on-value

how-to-hide-labels-in-ios-charts
https://stackoverflow.com/questions/36713996/how-to-hide-labels-in-ios-charts/36720305

how to limit the YAxis Label's width
https://github.com/danielgindi/Charts/issues/588

Date

get-current-date-in-swift-3
https://stackoverflow.com/questions/39513258/get-current-date-in-swift-3

how-to-get-the-hour-of-the-day-with-swift
https://stackoverflow.com/questions/24137692/how-to-get-the-hour-of-the-day-with-swift

convert-local-date-to-utc-in-swift-tutorial
https://www.iostutorialjunction.com/2017/10/convert-local-date-to-utc-in-swift-tutorial.html

Epoch & Unix Timestamp Conversion Tools
https://www.epochconverter.com/

nsdate-beginning-of-day-and-end-of-day
https://stackoverflow.com/questions/13324633/nsdate-beginning-of-day-and-end-of-day

get-last-day-of-the-year-using-date-int-swift
https://stackoverflow.com/questions/44321586/get-last-day-of-the-year-using-date-int-swift

swift-4-current-year-mont-day
https://coderwall.com/p/b8pz5q/swift-4-current-year-mont-day

how-to-add-minutes-to-current-time-in-swift
https://stackoverflow.com/questions/29465205/how-to-add-minutes-to-current-time-in-swift

swift-convert-nstimeinteval-to-nsdate
https://stackoverflow.com/questions/27111355/swift-convert-nstimeinteval-to-nsdate

how-do-i-find-the-number-of-days-in-given-month-and-year-using-swift
https://stackoverflow.com/questions/31590316/how-do-i-find-the-number-of-days-in-given-month-and-year-using-swift

Realm DB

how-to-sort-using-realm
https://stackoverflow.com/questions/34283405/how-to-sort-using-realm

GCD

Multithreading in iOS| Difference between GCD and NSOperation
https://medium.com/@abhimuralidharan/understanding-threads-in-ios-5b8d7ab16f09

how-to-use-background-thread-in-swift
https://stackoverflow.com/questions/24056205/how-to-use-background-thread-in-swift

Others

swift-convert-rangeint-to-int
https://stackoverflow.com/questions/32103282/swift-convert-rangeint-to-int

range-types-in-swift
https://medium.com/@matthew_healy/range-types-in-swift-e0ab0f5592a3

get-a-enum-with-a-string-in-swift
https://stackoverflow.com/questions/44474857/get-a-enum-with-a-string-in-swift

how-to-enumerate-an-enum-with-string-type
https://stackoverflow.com/questions/24007461/how-to-enumerate-an-enum-with-string-type

switch-case-with-range
https://stackoverflow.com/questions/52665744/switch-case-with-range

check-if-optional-array-is-empty
https://stackoverflow.com/questions/27588964/check-if-optional-array-is-empty/27589004

get-index-of-enum-with-extension-of-string
https://stackoverflow.com/questions/44452026/get-index-of-enum-with-extension-of-string

留言

這個網誌中的熱門文章

collection view part6 swift

preselect collectionview https://stackoverflow.com/questions/45610785/how-to-preselect-and-highlight-a-cell-from-a-uicollectionview https://hackernoon.com/uicollectionviewcell-selection-made-easy-41dae148379d if collectionview allow multiple selection remeber add this, cell item could be Deselect collectionView. selectItem (at: indexPath, animated: true , scrollPosition: . top ) https://stackoverflow.com/questions/15330844/uicollectionview-select-and-deselect-issue save indexpath userdefault https://stackoverflow.com/questions/34804294/how-to-save-nsindexpath-locally https://stackoverflow.com/questions/37001643/how-to-add-nsindexpath-to-nsuserdefaults-in-swift navigation presneted viewcontroller dismiss https://stackoverflow.com/questions/31205002/why-is-it-bad-practice-to-have-a-viewcontroller-dismiss-itself indexpath comparison         if selectIndexPath . contains (indexPath) {             cell. isSelect...

android java 小數點的坑

如果temp  = 12.5                         val newTemp = "%.1f".format(Tempvalue) 原本的寫法是這樣 在法語區 將newTemp.toFloat() 後會掛,因為法語地區的小數點是 , 逗號 所以沒法轉成 12.5  會變成 12,5 後來的解法 將拿到的數字硬轉成 12.5  其他就不管了 val newTemp = "%.1f" . format ( Locale . US , Tempvalue)

collection view part 5 swift

load plist data https://www.cnblogs.com/gongyuhonglou/p/6029340.html https://blog.csdn.net/sophieDJF/article/details/88247388 https://stackoverflow.com/questions/24045570/how-do-i-get-a-plist-as-a-dictionary-in-swift https://stackoverflow.com/questions/40436895/how-to-read-plist-without-using-nsdictionary-in-swift get specifig key in dictionary https://stackoverflow.com/questions/24640990/how-do-i-get-the-key-at-a-specific-index-from-a-dictionary-in-swift get specifig key with index https://stackoverflow.com/questions/31775724/swift-dictionary-access-via-index get collectionview selection https://stackoverflow.com/questions/21639394/how-to-select-item-in-collectionview-programmatically add button in uinavigationbar https://www.hackingwithswift.com/example-code/uikit/how-to-add-a-bar-button-to-a-navigation-bar child viewcontroller pass data to parent viewcontroller https://stackoverflow.com/questions/39285588/how-to-pass-data-from-child-to-parent-view-controller-in-sw...