性解决问题)
2.Generating SSH keys:https://help.github.com/articles/generating-ssh-keys/(虽然没有解决我的问题,但长了不少知识,或许对很多的问题可以起到解决的作用)
后来在我的.ssh目录下增加了config文件,命令如下:$ vim config
在config中需要写入如下内容:
Host git.XX.XX.com
HostKeyAlgorithms +ssh-dss
第一句中的XX.XX大家根据自己的项目中ssh链接查看@后面到‘:’前的一段,格式为git.XX.XX.com.保存文件,重新提交就好了
ssh://hzluoyun1@git.XX.XX.com:XXXXX.git
————————————————
版权声明:本文为CSDN博主「Loreen527」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/guoguo527/java/article/details/50504630
1:如何给一个Button增加一个可以传递的参数,代码如下:
实现的原理是使用了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的事件响应方法里接受该参数
-(void)sureBtnAction:(UIButton*)button{
UIView *bakView = objc_getAssociatedObject(button, "firstObject");
SureBtnCallBack sucreback = objc_getAssociatedObject(button, "callBack");
sucreback();
[bakView removeFromSuperview];
}
note:注意在使用runtime时候要导入头文件
调试某段代码使用时间:
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
这个错误的解决办法
cd ~/Library/Developer/Xcode/DerivedData/
然后再终端输入:xattr -rc .
设置终端翻墙
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
恢复
git config --global --unset http.proxy
git config --global --unset http.https://github.com.proxy
终端翻墙打开 setproxy
终端关闭:unsetproxy
验证状态 curl -v getip.91jinrong.com
/** 手指触目开发 */
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView{
NSLog(@"😁😝 = %@",NSStringFromSelector(_cmd));
}
/** 手指将要离开 */
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset{
NSLog(@"😁😝 = %@",NSStringFromSelector(_cmd));
}
/** 手指已经完全离开 */
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate{
NSLog(@"😁😝 = %@",NSStringFromSelector(_cmd));
}
/** 手指离开后开始减速 */
- (void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView{
NSLog(@"😁😝 = %@",NSStringFromSelector(_cmd));
}
/** 滑动停止时候触发 */
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{
// 如果手直接离开未减速 是不会调用 scrollViewDidEndDecelerating 的
NSLog(@"😁😝 = %@",NSStringFromSelector(_cmd));
}