Commit 9571367f7f3659362978b9b3dd96ff7d5bef68be
1 parent
79394633
Exists in
parentassistant
no message
Showing
3 changed files
with
28 additions
and
21 deletions
Show diff stats
ParentAssistant/ParentAssistant/Classes/controllers/userCenter/BaseCityChooseSchoolViewController.swift
ParentAssistant/Pods/Target Support Files/XRCarouselView/Info.plist
| ... | ... | @@ -2,25 +2,30 @@ |
| 2 | 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 3 | 3 | <plist version="1.0"> |
| 4 | 4 | <dict> |
| 5 | - <key>CFBundleDevelopmentRegion</key> | |
| 6 | - <string>en</string> | |
| 7 | - <key>CFBundleExecutable</key> | |
| 8 | - <string>${EXECUTABLE_NAME}</string> | |
| 9 | - <key>CFBundleIdentifier</key> | |
| 10 | - <string>${PRODUCT_BUNDLE_IDENTIFIER}</string> | |
| 11 | - <key>CFBundleInfoDictionaryVersion</key> | |
| 12 | - <string>6.0</string> | |
| 13 | - <key>CFBundleName</key> | |
| 14 | - <string>${PRODUCT_NAME}</string> | |
| 15 | - <key>CFBundlePackageType</key> | |
| 16 | - <string>FMWK</string> | |
| 17 | - <key>CFBundleShortVersionString</key> | |
| 18 | - <string>2.5.6</string> | |
| 19 | - <key>CFBundleSignature</key> | |
| 20 | - <string>????</string> | |
| 21 | - <key>CFBundleVersion</key> | |
| 22 | - <string>${CURRENT_PROJECT_VERSION}</string> | |
| 23 | - <key>NSPrincipalClass</key> | |
| 24 | - <string></string> | |
| 5 | + <key>CFBundleDevelopmentRegion</key> | |
| 6 | + <string>en</string> | |
| 7 | + <key>NSAppTransportSecurity</key> | |
| 8 | + <dict> | |
| 9 | + <key>NSAllowsArbitraryLoads</key> | |
| 10 | + <true/> | |
| 11 | + </dict> | |
| 12 | + <key>CFBundleExecutable</key> | |
| 13 | + <string>${EXECUTABLE_NAME}</string> | |
| 14 | + <key>CFBundleIdentifier</key> | |
| 15 | + <string>${PRODUCT_BUNDLE_IDENTIFIER}</string> | |
| 16 | + <key>CFBundleInfoDictionaryVersion</key> | |
| 17 | + <string>6.0</string> | |
| 18 | + <key>CFBundleName</key> | |
| 19 | + <string>${PRODUCT_NAME}</string> | |
| 20 | + <key>CFBundlePackageType</key> | |
| 21 | + <string>FMWK</string> | |
| 22 | + <key>CFBundleShortVersionString</key> | |
| 23 | + <string>2.5.6</string> | |
| 24 | + <key>CFBundleSignature</key> | |
| 25 | + <string>????</string> | |
| 26 | + <key>CFBundleVersion</key> | |
| 27 | + <string>${CURRENT_PROJECT_VERSION}</string> | |
| 28 | + <key>NSPrincipalClass</key> | |
| 29 | + <string></string> | |
| 25 | 30 | </dict> |
| 26 | 31 | </plist> | ... | ... |
ParentAssistant/Pods/XRCarouselView/XRCarouselView/XRCarouselView.m
| ... | ... | @@ -344,7 +344,8 @@ static NSString *cache; |
| 344 | 344 | } |
| 345 | 345 | //下载图片 |
| 346 | 346 | NSBlockOperation *download = [NSBlockOperation blockOperationWithBlock:^{ |
| 347 | - NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:urlString]]; | |
| 347 | + NSString * string = [urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; | |
| 348 | + NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:string]]; | |
| 348 | 349 | if (!data) return; |
| 349 | 350 | UIImage *image = getImageWithData(data); |
| 350 | 351 | //取到的data有可能不是图片 | ... | ... |