跳到主要內容

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...

collection view part3 swift

make random color for test, i put in cell background color watch diff https://stackoverflow.com/questions/29779128/how-to-make-a-random-color-with-swift because use CYlayer, i have to remove layer https://stackoverflow.com/questions/10789766/remove-all-sublayers-from-a-view https://stackoverflow.com/questions/37581951/ios-how-to-remove-previously-added-sublayers-of-a-uiview/37581988 alpha gradint with imageview https://stackoverflow.com/questions/11807876/transparent-alpha-gradient-with-core-graphic-iphone swift map and flatmap http://swiftcafe.io/2016/03/28/about-map/ get local date and time https://stackoverflow.com/questions/28404154/swift-get-local-date-and-time swift dictionary basic https://stackoverflow.com/questions/27313242/how-to-append-elements-into-dictionary-in-swift add 1 day to NSDate https://stackoverflow.com/questions/5067785/how-do-i-add-1-day-to-an-nsdate get keys from dictionay https://stackoverflow.com/questions/26386093/array-from-dictionary...

js30 d27 drag跑馬燈

https://github.com/richardhsieh18/js30/tree/master/course27 CSS transform: scale(0.98);  =>  transform: scale(1); js     isDown = true;     slider.classList.add('active');     startX = e.pageX - slider.offsetLeft;     scrollLeft = slider.scrollLeft;   });     if(!isDown) return; //stop the function from running     e.preventDefault();     const x = e.pageX - slider.offsetLeft;     const walk = (x - startX) * 3;     slider.scrollLeft = scrollLeft - walk;   });