This file contains 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
2020-07-14 06:34:10 +0000 [MT] Beginning distribution assistant for archive: TestFirebaseCrashlytics, task: 2 | |
2020-07-14 06:34:13 +0000 [MT] Proceeding to distribution step IDEDistributionAnalyzeArchiveStepViewController, context: <IDEDistributionContext: 0x7fd58861b040; archive(resolved)='<IDEArchive: 0x7fd59165ad60>', distributionTask(resolved)='2', distributionDestination(resolved)='1', distributionMethod(resolved)='<IDEDistributionMethodiOSEnterprise: 0x7fd568f0a440>', team(resolved)='(null)'> | |
Chain (5, self inclusive): | |
<IDEDistributionContext: 0x7fd58861b040; archive = '<IDEArchive: 0x7fd59165ad60>', distributionMethod='<IDEDistributionMethodiOSEnterprise: 0x7fd568f0a440>', team='(null)'> | |
<IDEDistributionContext: 0x7fd587f27570; archive = '<IDEArchive: 0x7fd59165ad60>', distributionMethod='<IDEDistributionMethodiOSEnterprise: 0x7fd568f0a440>', team='(null)'> | |
<IDEDistributionContext: 0x7fd59f8cad50; archive = '<IDEArchive: 0x7fd59165ad60>', distributionMethod='<IDEDistributionMethodiOSEnterprise: 0x7f |
This file contains 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
//清除cookies | |
NSHTTPCookie *cookie; | |
NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; | |
for (cookie in [storage cookies]){ | |
[storage deleteCookie:cookie]; | |
} | |
//清除UIWebView的缓存 | |
[[NSURLCache sharedURLCache] removeAllCachedResponses]; | |
NSURLCache * cache = [NSURLCache sharedURLCache]; | |
[cache removeAllCachedResponses]; |
This file contains 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
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | |
let cell: CustomCell = CustomCell() | |
cell.button.addTarget(self, action: #selector(buttonClicked(sender:)), for: .touchUpInside) | |
} | |
func buttonClicked(sender: UIButton) { | |
let tapLocation = sender.convert(CGPoint.zero, to: tableView) //取得按鈕位置 | |
let tapIndexPath = self.tableView.indexPathForRow(at: tapLocation) //這個位置位於哪個indexPath | |
print(tapIndexPath.row) | |
} |