This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wkwebView可以加载百度等网址,但是不能加载http格式的网址 在plist文件中加入 | |
<key>NSAppTransportSecurity</key> | |
<dict> | |
<key>NSAllowsArbitraryLoads</key> | |
<true/> | |
</dict> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adfa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.表达方式 | |
申明: (返回值类型)(^block名)(参数列表); | |
变量形式: ^(形参列表){ | |
codes... | |
} | |
tydef: typedef (返回值类型)(^block名)(参数列表); | |
函数中: | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//对self.belongarryDevice降序 | |
NSArray *sortDesc = [NSArray arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:@"moneyAmount" ascending:NO]]; | |
[self.belongarryDevice sortUsingDescriptors:sortDesc]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@property (nonatomic, strong) void (^dispath_queueNoParaCompletion)(void); | |
@property (nonatomic, strong) void (^dispath_queueCompletion)(dispatch_semaphore_t semaphore); | |
+(void)callSemaphoreSyncQueueUseConcurrentStr:(char*)constChar WithCompletionBlock:(void(^)(dispatch_semaphore_t semaphore))completionBlock | |
{ | |
if (completionBlock) { | |
self.dispath_queueCompletion = completionBlock; | |
} | |
dispatch_queue_t queue = dispatch_queue_create(constChar, DISPATCH_QUEUE_CONCURRENT); | |
dispatch_async(queue, ^{ |