小编Vic*_*ler的帖子

错误:使用代理时Microsoft Visual Studio 2012远程调试监视器(MSVSMON.EXE)

首先,我将Visual Studio 2012更改.Net Framework 4.5.Net Framework 4 Client Profile我的项目.
我也使用https代理与第三方应用程序 - > Proxifier
之后,当我想启动应用程序时,我收到此错误:

在此输入图像描述

错误:
The Microsoft Visual Studio Remote Debugging Monitor (MSVSMON.EXE) does not apear to be running on the remote computer ...

这个错误意味着什么,我该如何删除它?
注意:在visual studio 2010中我没有这样的错误!

proxy remote-debugging windows-applications visual-studio-2012

5
推荐指数
1
解决办法
855
查看次数

如何在Swift中将NSIndexPath转换为Int?

我需要我的单元格的索引UICollectionView.我知道如何得到它,但问题是当我将其转换NSIndexpathInt.这是我的代码.

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {

    let cell = sender as! UICollectionViewCell
    let index = self.collectionView!.indexPathForCell(cell)!

    let vc : VideosViewController = segue.destinationViewController as! VideosViewController
    vc.id_category =  self.result_category[index.row as Int]["id"].intvalue
}
Run Code Online (Sandbox Code Playgroud)

ios uicollectionview swift

5
推荐指数
1
解决办法
3104
查看次数

如何在Watch OS 2中从Watch Extension创建UIView实例?

在手表OS 1中,我能够在WatchExtension中创建自定义视图的实例.我不是在谈论它,我的意思是只创建一个视图实例,然后创建一个UIImage包含其内容的实例.

现在,在OS 2中,我无法访问UIViewWatchExtension,即使我已经导入了UIKit框架.

有没有办法UIView从WatchExtension 创建一个实例?

uiview ios swift xcode7 watchos-2

5
推荐指数
1
解决办法
1591
查看次数

在Swift中添加和减去时间

我用伪代码写了一些,因为我不知道它的语法.我想知道timeLeftLabel.text在6小时结束之前剩下多少小时,分钟和秒.我最大的问题是我不知道如何加减次数.谁能帮我?

var timer = NSTimer()

func timerResults() {
    let theDate = NSDate()
    var endTime = theDate //+ 6 hours
    let timeLeft = endTime //- theDate
    timeLeftLabel.text = "\(timeLeft)"
}

@IBOutlet weak var timeLeftLabel: UILabel!
@IBAction func IBbtnUpdateTap(sender: UIButton){

timer = NSTimer.scheduledTimerWithTimeInterval(1.0, target: self, selector: Selector("timerResults"), userInfo: nil, repeats: true)

}
Run Code Online (Sandbox Code Playgroud)

nstimer nstimeinterval ios swift

5
推荐指数
1
解决办法
4134
查看次数

无法解锁钥匙串

为iOS应用CI故事构建新的Jenkins.我buildKeyChainAccess中创建了一个钥匙串来保存开发证书.

我为钥匙串设置了密码. On Jenkins, Manage Jenkins --> Keychains and Provisioning Profiles Management ->选择build.keychain文件并上传.

我填写了密码(与我之前设置的相同).我填写了证书(通过复制KeyChain访问中的证书信息的通用名称).

我使用钥匙串和代码签名身份创建了一个Jenkins工作,填写了密码.但是当我通过Jenkins构建项目时,它会在控制台输出中抛出以下错误:

[ProjectName] $ /usr/bin/security unlock-keychain -p ********    /Users/Shared/Jenkins/Home/jobs/JobName/workspace/build.keychain
security: SecKeychainUnlock /Users/Shared/Jenkins/Home/jobs/JobName/workspace/build.keychain: The user name or passphrase you entered is not correct.

FATAL: Unable to unlock the keychain.
Run Code Online (Sandbox Code Playgroud)

我检查了密码,我可以使用密码在KeyChain Access中解锁构建钥匙串.詹金斯,我不确定它要求的用户名是什么?

macos keychain ios jenkins

5
推荐指数
1
解决办法
3656
查看次数

内连接和内连接获取有什么区别?,HQL

我在HQL查询中有这个疑问

"SELECT c from Account c inner join c.person " 
"SELECT c from Account c inner join fetch c.person"
Run Code Online (Sandbox Code Playgroud)

是否相等?...什么时候可以使用fetch

提前致谢。

hibernate hql

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

在Swift中格式化字符串

在某些语言中,例如C#,您可以通过以下方式创建字符串:

"String {0} formatted {1} "
Run Code Online (Sandbox Code Playgroud)

然后String.format通过传递值来格式化它.

上面的声明是好的,因为您在创建字符串时不必知道其参数的类型.

我试图在Swift中找到类似的方法,但我发现的东西类似于以下格式:

"String %d formatted %d"
Run Code Online (Sandbox Code Playgroud)

这需要您使用格式化字符串String(format: , parameters).这不好,因为在声明字符串时你还必须知道参数类型.

在Swift中是否有类似的方法,我不必知道参数类型?

string formatting ios swift

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

Switch中的TableView中的UISwitch

各位程序员大家好!我有一个需要帮助的挑战.我使用Custom Style Cell构建了一个表.

这个单元格只有一个LabelUISwitch.标签显示名称,交换机显示他们是否是管理员.这非常有效.我的挑战是如何以及在何处将代码置于更改开关时作出反应.

因此,如果我单击开关将其从关闭更改为打开,我可以在哪里打印人名?如果我可以得到打印的名称,我可以自己做php/sql代码.谢谢,这是我的代码片段.

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {

    let cell: UITableViewCell = tableView.dequeueReusableCellWithIdentifier(kCellIdentifier) as UITableViewCell
    let admin = self.admin[indexPath.row]

    let text1a = admin.FirstName
    let text1aa = " "

    let text1b = admin.LastName
    let text1 = text1a + text1aa + text1b
    (cell.contentView.viewWithTag(1) as UILabel).text = text1

    if admin.admin == "yes" {
        (cell.contentView.viewWithTag(2) as UISwitch).setOn(true, animated:true)

    } else if admin.admin == "no" {
        (cell.contentView.viewWithTag(2) as UISwitch).setOn(false, animated:true)
    }

    return cell
}
Run Code Online (Sandbox Code Playgroud)

tableview uiswitch swift

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

如何检查另一个视图控制器是否可见?

有时我的应用程序会在两个UIAlertViews尝试同时出现时崩溃.如何UIAlertview在显示另一个之前检查另一个是否正在显示?

这是我尝试过的,但它不起作用.

注意:我正在使用swift进行这个项目.

if ViewController.isVisable == false {    
    self.presentViewController(AlertView, animated: true, completion: nil)    
}
Run Code Online (Sandbox Code Playgroud)

uialertview ios swift uialertcontroller

4
推荐指数
2
解决办法
9862
查看次数

iOS快速代理在uiview中有超过1个uitextfield

我有一个iOS应用程序,有一个UIView和三个UITextField(超过1个)我想了解我的类ViewController管理的最佳实践 UITextField.

- 类MainViewController:UIViewController,UITextFieldDelegate

我不知道,因为我有一个以上UITextField,只有一个func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool

ios uitextfielddelegate swift

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