ios - 有什么好的方法从UIDatePicker当中取数?
ringa_lee
ringa_lee 2017-04-17 16:01:14
0
1
271
ringa_lee
ringa_lee

ringa_lee

reply all (1)
刘奇

自己用什么样的方便 自己category一个不就完了

extension String { // 新的方法 func toMyFormartString()->String{ // 怎么处理 return some } }

这样你所有的String类型都可以有toMyFormartString的方法了
swift objc 扩展一个现有类 太爽

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!