Add MBProgressHUD

This commit is contained in:
Chris Li 2016-09-06 17:17:02 -04:00
parent 7f5be0822a
commit 355e511e18
5 changed files with 10 additions and 6 deletions

View File

@ -49,7 +49,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.7.1757</string>
<string>1.7.1759</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>

View File

@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.7.2292</string>
<string>1.7.2294</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionMainStoryboard</key>

View File

@ -33,9 +33,9 @@ import Foundation
extension NSLocale {
class var preferredLangCodes: [String] {
let preferredLangNames = self.preferredLanguages()
var preferredLangCodes = NSMutableOrderedSet()
for lang in preferredLangNames {
guard let code = lang.componentsSeparatedByString("-").first else {continue}
let preferredLangCodes = NSMutableOrderedSet()
for name in preferredLangNames {
guard let code = name.componentsSeparatedByString("-").first else {continue}
preferredLangCodes.addObject(NSLocale.canonicalLanguageIdentifierFromString(code))
}
return preferredLangCodes.flatMap({ $0 as? String})

View File

@ -7,6 +7,7 @@ platform :ios, '9.0'
pod 'DZNEmptyDataSet'
pod 'SwiftyUserDefaults'
pod 'MBProgressHUD', '~> 1.0.0'
pod 'Operations', :git => 'https://github.com/ProcedureKit/ProcedureKit.git', :branch => 'swift/2.3'
end

View File

@ -1,5 +1,6 @@
PODS:
- DZNEmptyDataSet (1.8.1)
- MBProgressHUD (1.0.0)
- Operations (3.2.0):
- Operations/Standard (= 3.2.0)
- Operations/Standard (3.2.0)
@ -7,6 +8,7 @@ PODS:
DEPENDENCIES:
- DZNEmptyDataSet
- MBProgressHUD (~> 1.0.0)
- Operations (from `https://github.com/ProcedureKit/ProcedureKit.git`, branch `swift/2.3`)
- SwiftyUserDefaults
@ -22,9 +24,10 @@ CHECKOUT OPTIONS:
SPEC CHECKSUMS:
DZNEmptyDataSet: 9525833b9e68ac21c30253e1d3d7076cc828eaa7
MBProgressHUD: 4890f671c94e8a0f3cf959aa731e9de2f036d71a
Operations: 4c5f06d7328f1b097d5dac5c0d614917ecbc96e7
SwiftyUserDefaults: 7abdba50a50ea0c18ee8903af3c88e4c1cb8448d
PODFILE CHECKSUM: 385ab6f80e54cf2d2a029ad39e3ce32eaa738fcc
PODFILE CHECKSUM: 7fce2ab788d4fea2728405e44965e38a852f02db
COCOAPODS: 1.0.1