跳到主要內容

swift 190531 part1

checking-if-textfields-are-empty-swift
https://stackoverflow.com/questions/38162602/checking-if-textfields-are-empty-swift

xcode-ios-how-to-determine-whether-code-is-running-in-debug-release-build
https://stackoverflow.com/questions/9063100/xcode-ios-how-to-determine-whether-code-is-running-in-debug-release-build

JSON to model
https://app.quicktype.io/

storyboard-vs-uistoryboardname-main-bundle-nil
https://stackoverflow.com/questions/32850853/storyboard-vs-uistoryboardname-main-bundle-nil

swift-enums-vs-structures-vs-classes
https://medium.com/@saad.eloulladi/swift-enums-vs-structures-vs-classes-938a4cd76c0d

what-is-swift-enum-byte-representation
https://stackoverflow.com/questions/38305976/what-is-swift-enum-byte-representation

circular-progress-bar-in-ios
https://codeburst.io/circular-progress-bar-in-ios-d06629700334
https://gist.github.com/yogeshmanghnani/d73ad00eed7b3b55784c0d24e9852332
https://gist.githubusercontent.com/yogeshmanghnani/d73ad00eed7b3b55784c0d24e9852332/raw/860c72ddd58a70604f3defb40c15d063341aa609/CircularProgressBar.swift
https://www.youtube.com/watch?v=O3ltwjDJaMk

how-to-change-uicollectionviewcell-size-programmatically-in-swift
https://stackoverflow.com/questions/31662155/how-to-change-uicollectionviewcell-size-programmatically-in-swift

how-to-set-cell-spacing-and-uicollectionview-uicollectionviewflowlayout-size-r
https://stackoverflow.com/questions/28325277/how-to-set-cell-spacing-and-uicollectionview-uicollectionviewflowlayout-size-r

XIB——AutoLayout添加约束
https://blog.csdn.net/gongyuhonglou/article/details/72817711

how-to-set-uicollectionviewcell-width-and-height-programmatically
https://stackoverflow.com/questions/38028013/how-to-set-uicollectionviewcell-width-and-height-programmatically

留言

這個網誌中的熱門文章

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