小编Jor*_*oon的帖子

scrollViewDidScroll从未调用过

我在View中有一个Scrollview.我想使用函数scrollViewDidScroll来检查和更新箭头(左侧).

- (void)scrollViewDidScroll:(UIScrollView *)scrollView {

    NSLog(@"Did scroll");
    [self updateButtons];
}
Run Code Online (Sandbox Code Playgroud)

当我向左或向右滚动时,似乎不会调用scrollViewDidScroll.我搜索了一切,但没有找到解决方案.

希望有人有解决方案.

cocoa-touch objective-c uiscrollview

15
推荐指数
2
解决办法
1万
查看次数

安装Helm Tiller Kubernetes时使用的内部证书

执行时会触发以下错误kubectl -n gitlab-managed-apps logs install-helm.

我已经尝试重新生成证书,并绕过证书检查.不知何故,它使用我的内部证书而不是源的证书.

root@dev # kubectl -n gitlab-managed-apps logs install-helm
+ helm init --tiller-tls --tiller-tls-verify --tls-ca-cert /data/helm/helm/config/ca.pem --tiller-tls-cert /data/helm/helm/config/cert.pem --tiller-tls-key /data/helm/helm/config/key.pem
Creating /root/.helm 
Creating /root/.helm/repository 
Creating /root/.helm/repository/cache 
Creating /root/.helm/repository/local 
Creating /root/.helm/plugins 
Creating /root/.helm/starters 
Creating /root/.helm/cache/archive 
Creating /root/.helm/repository/repositories.yaml 
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com 
Error: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Get https://kubernetes-charts.storage.googleapis.com/index.yaml: x509: certificate is valid for *.tdebv.nl, not kubernetes-charts.storage.googleapis.com
Run Code Online (Sandbox Code Playgroud)

这可能是什么问题?下面的屏幕截图是Gitlab给我的错误(也没有太多信息).

在此输入图像描述

gitlab kubernetes kubernetes-helm

9
推荐指数
1
解决办法
2026
查看次数

jquery ui拖放+可排序

我正在努力使拖放也可以排序.我可以从div 1拖到2,从div 2拖到div 1,但因为我使用clone我无法进行排序工作.

有任何想法吗?

$(document).ready(function() {

    $("#qselected").sortable();
    $("#qselected").disableSelection();

    $(".qitem").draggable({
        containment : "#container",
        helper : 'clone',
        revert : 'invalid'
    });

    $("#qselected, #qlist").droppable({
        hoverClass : 'ui-state-highlight',
        drop : function(ev, ui) {
            $(ui.draggable).clone().appendTo(this);
            $(ui.draggable).remove();

            $(".qitem").draggable({
                containment : "#container",
                helper : 'clone',
                revert : 'invalid'
            });
        }
    });
});
Run Code Online (Sandbox Code Playgroud)

现场演示:http://jsfiddle.net/6xXPq/4/

jquery jquery-ui draggable jquery-ui-sortable

8
推荐指数
1
解决办法
2万
查看次数

向服务器发送密码

我问自己.将个人信息从iOS设备发送到服务器的最佳方式是什么?

此时我在应用程序中加密密码(sha1 salt password pepper)然后我使用从iOS发送到服务器的帖子数据.

什么是保护用户和保护任何MITM攻击的最佳方法.我的方式足够安全吗?

更新:

我添加了SSL证书.为了确保用户只需登录一次我存储用户注册时生成的密钥.我在用户第一次登录时获取它们.与用户名和用户ID组合在一起.这是一个好方法吗?只有越狱用户才能阅读并有风险.

security objective-c ios

4
推荐指数
1
解决办法
1258
查看次数