性解決問(wèn)題)
2.Generating SSH keys:https://help.github.com/articles/generating-ssh-keys/(雖然沒(méi)有解決我的問(wèn)題,但長(zhǎng)了不少知識(shí),或許對(duì)很多的問(wèn)題可以起到解決的作用)
后來(lái)在我的.ssh目錄下增加了config文件,命令如下:$ vim config
在config中需要寫(xiě)入如下內(nèi)容:
Host git.XX.XX.com
HostKeyAlgorithms +ssh-dss
第一句中的XX.XX大家根據(jù)自己的項(xiàng)目中ssh鏈接查看@后面到‘:’前的一段,格式為git.XX.XX.com.保存文件,重新提交就好了
ssh://hzluoyun1@git.XX.XX.com:XXXXX.git
————————————————
版權(quán)聲明:本文為CSDN博主「Loreen527」的原創(chuàng)文章,遵循CC 4.0 BY-SA版權(quán)協(xié)議,轉(zhuǎn)載請(qǐng)附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/guoguo527/java/article/details/50504630
1:如何給一個(gè)Button增加一個(gè)可以傳遞的參數(shù),代碼如下:
實(shí)現(xiàn)的原理是使用了iOS的“黑魔法” Runtime
UIButton *surebtn = [UIButton buttonWithType:(UIButtonTypeCustom)];
objc_setAssociatedObject(surebtn, "firstObject", backView, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
objc_setAssociatedObject(surebtn, "callBack", backBlack, OBJC_ASSOCIATION_COPY_NONATOMIC);
然后在btn的事件響應(yīng)方法里接受該參數(shù)
-(void)sureBtnAction:(UIButton*)button{
UIView *bakView = objc_getAssociatedObject(button, "firstObject");
SureBtnCallBack sucreback = objc_getAssociatedObject(button, "callBack");
sucreback();
[bakView removeFromSuperview];
}
note:注意在使用runtime時(shí)候要導(dǎo)入頭文件
調(diào)試某段代碼使用時(shí)間:
double start = CFAbsoluteTimeGetCurrent();
NSLog(@"duration---%f", CFAbsoluteTimeGetCurrent() - start);
#import <objc/runtime.h>
##
CodeSign /Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-faehbxlmjdryajcjmcwmlhrlxyfa/Build/Products/Debug-iphonesimulator/OutdoorClub.app cd /Users/jiaguoshang/Desktop/OutdoorClub-2017-4-24-GoogleMaps export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH=”/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin”
Signing Identity: “-“
/usr/bin/codesign --force --sign - --timestamp=none /Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-faehbxlmjdryajcjmcwmlhrlxyfa/Build/Products/Debug-iphonesimulator/OutdoorClub.app
/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-faehbxlmjdryajcjmcwmlhrlxyfa/Build/Products/Debug-iphonesimulator/OutdoorClub.app: replacing existing signature /Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-faehbxlmjdryajcjmcwmlhrlxyfa/Build/Products/Debug-iphonesimulator/OutdoorClub.app: resource fork, Finder information, or similar detritus not allowed Command /usr/bin/codesign failed with exit code 1
這個(gè)錯(cuò)誤的解決辦法
cd ~/Library/Developer/Xcode/DerivedData/
然后再終端輸入:xattr -rc .
設(shè)置終端翻墻
git config --global http.proxy socks5://127.0.0.1:1086
git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
恢復(fù)
git config --global --unset http.proxy
git config --global --unset http.https://github.com.proxy
終端翻墻打開(kāi) setproxy
終端關(guān)閉:unsetproxy
驗(yàn)證狀態(tài) curl -v getip.91jinrong.com
/** 手指觸目開(kāi)發(fā) */
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView{
NSLog(@"???? = %@",NSStringFromSelector(_cmd));
}
/** 手指將要離開(kāi) */
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset{
NSLog(@"???? = %@",NSStringFromSelector(_cmd));
}
/** 手指已經(jīng)完全離開(kāi) */
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate{
NSLog(@"???? = %@",NSStringFromSelector(_cmd));
}
/** 手指離開(kāi)后開(kāi)始減速 */
- (void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView{
NSLog(@"???? = %@",NSStringFromSelector(_cmd));
}
/** 滑動(dòng)停止時(shí)候觸發(fā) */
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{
// 如果手直接離開(kāi)未減速 是不會(huì)調(diào)用 scrollViewDidEndDecelerating 的
NSLog(@"???? = %@",NSStringFromSelector(_cmd));
}

image.png

4120931-340344bca6ffd874.png