小编Tia*_*tos的帖子

iPad数字键盘

我一直试图在iPad上安装一个数字键盘,但是当我在TextField上设置一个数字键盘时,我得到一个带有数字和ponctuation的普通键盘.但是我在模拟器上发现了几个错误,我真的不知道这是不是另一个.

iPad上有标准键盘吗?

keyboard ipad

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

具有标准iPhone开发人员计划的多台计算机

我已经注册了标准的iPhone开发人员计划,并且我已成功为我的iMac创建了配置文件.但我也有一台MacBook Pro,我在旅途中使用它.但是使用标准的iPhone开发人员计划似乎没有办法让2台计算机工作,除非我在切换机器时花时间撤销并重新创建/重新验证证书颁发机构.

我对吗?或者有没有办法在多台机器上使用相同的CA?

iphone provisioning certificate-authority

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

显示连续modalViews的正确方法

我有两个视图需要以模态方式显示,一个接一个.如果我们连续解雇和显示,这不起作用,如下所示:

[rootController dismissModalViewControllerAnimated: YES];
[rootController presentModalViewController: psvc animated: YES];
Run Code Online (Sandbox Code Playgroud)

第二个模态视图根本没有显示出来.

我见过一个像这样的修复:

[rootController dismissModalViewControllerAnimated: YES];
[[UIApplication sharedApplication] beginIgnoringInteractionEvents];
[self performSelector: @selector(seekModal) withObject: nil afterDelay: 0.5];
[[UIApplication sharedApplication] endIgnoringInteractionEvents];
Run Code Online (Sandbox Code Playgroud)

问题是这不会一直有效(所需的延迟有时是优越的).

另一个可能的解决方法是消除动画:

[rootController dismissModalViewControllerAnimated: NO];
[rootController presentModalViewController: psvc animated: YES];
Run Code Online (Sandbox Code Playgroud)

但我真的很想保留动画,以保持第一个模态不受影响的感觉.有什么建议?

iphone animated dismiss modalviewcontroller

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

Ember-cli ember服务于AssertionError(false == true)

我正在尝试按照ember-cli.com上的"入门"部分进行操作,但在尝试"ember serve"时遇到错误:

version: 0.1.6
Could not find watchman, falling back to NodeWatcher for file system events
Livereload server on port 35729
Serving on http://0.0.0.0:4200/
File: project/app.js
false == true
AssertionError: false == true
    at Visitor.PVp.visitWithoutReset (/Users/tiagomatos/Desktop/project/node_modules/ember-cli-esnext/node_modules/broccoli-esnext/node_modules/esnext/node_modules/recast/node_modules/ast-types/lib/path-visitor.js:135:12)
    at Visitor.PVp.visit (/Users/tiagomatos/Desktop/project/node_modules/ember-cli-esnext/node_modules/broccoli-esnext/node_modules/esnext/node_modules/recast/node_modules/ast-types/lib/path-visitor.js:117:21)
    at Function.transform (/Users/tiagomatos/Desktop/project/node_modules/ember-cli-esnext/node_modules/broccoli-esnext/node_modules/esnext/node_modules/regenerator/lib/visit.js:31:18)
    at transform (/Users/tiagomatos/Desktop/project/node_modules/ember-cli-esnext/node_modules/broccoli-esnext/node_modules/esnext/lib/index.js:86:23)
    at compile (/Users/tiagomatos/Desktop/project/node_modules/ember-cli-esnext/node_modules/broccoli-esnext/node_modules/esnext/lib/index.js:33:9)
    at EsnextFilter.processString (/Users/tiagomatos/Desktop/project/node_modules/ember-cli-esnext/node_modules/broccoli-esnext/index.js:41:16)
    at EsnextFilter.Filter.processFile (/Users/tiagomatos/Desktop/project/node_modules/ember-cli-esnext/node_modules/broccoli-esnext/node_modules/broccoli-filter/index.js:136:31)
    at Promise.resolve.then.catch.err.file (/Users/tiagomatos/Desktop/project/node_modules/ember-cli-esnext/node_modules/broccoli-esnext/node_modules/broccoli-filter/index.js:82:21)
    at $$$internal$$tryCatch (/Users/tiagomatos/Desktop/project/node_modules/ember-cli-esnext/node_modules/broccoli-esnext/node_modules/broccoli-filter/node_modules/rsvp/dist/rsvp.js:490:16)
    at $$$internal$$invokeCallback (/Users/tiagomatos/Desktop/project/node_modules/ember-cli-esnext/node_modules/broccoli-esnext/node_modules/broccoli-filter/node_modules/rsvp/dist/rsvp.js:502:17)
Run Code Online (Sandbox Code Playgroud)

我似乎无法找到有同样问题的其他人,所以我有点迷茫.关于可能导致这种情况的任何想法?

额外背景:

操作系统:OS X Yosemite

$ node -v
v0.10.35
$ npm -v
2.1.18
Run Code Online (Sandbox Code Playgroud)

ember.js ember-cli

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

MySQL连接字符集问题

我在 Mac 上使用带有 MySQL 的 velosurf,没有任何编码问题,但是当我切换到 Linux 计算机时,从 velosurf 获得的值未正确编码。

我发现这可能是默认连接字符集的问题。在 Mac 上我得到:

mysql> show variables like "collation_%";
+----------------------+-------------------+
| Variable_name        | Value             |
+----------------------+-------------------+
| collation_connection | utf8_general_ci   |
| collation_database   | utf8_general_ci   |
| collation_server     | latin1_swedish_ci |
+----------------------+-------------------+
3 rows in set (0.00 sec)

mysql> show variables like "character_set_%";
+--------------------------+--------------------------------------------------------+
| Variable_name            | Value                                                  |
+--------------------------+--------------------------------------------------------+
| character_set_client     | utf8                                                   |
| character_set_connection | utf8                                                   |
| character_set_database   | utf8                                                   |
| character_set_filesystem | binary                                                 |
| …
Run Code Online (Sandbox Code Playgroud)

mysql connection character-encoding

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

Android Studio构建配置

我想知道如何使用Android Studio创建不同的构建配置,使用不同的常量进行调试和发布构建(例如,服务器地址,API密钥等).

configuration android android-studio

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

Elastic Beanstalk Worker的SQS守护程序在1分钟后获得504网关超时

我有一个Elastic Beanstalk工作者,一次只能运行一个任务,这需要一些时间(从几分钟到,希望不到30分钟),所以我在SQS上排队.

在我的工作配置上,我有:

HTTP connections: 1
Visibility timeout: 3600
Error visibility timeout: 300

(On "Advanced")
Inactivity timeout: 1800
Run Code Online (Sandbox Code Playgroud)

问题是,似乎有1分钟的超时(在nginx上?)会覆盖"不活动超时",返回504(网关超时).

这是我在aws-sqsd.log文件中可以找到的内容:

2016-02-03T16:16:27Z init: initializing aws-sqsd 2.0 (2015-02-18)
2016-02-03T16:16:27Z start: polling https://sqs.eu-central-1.amazonaws.com/855381918026/jitt-publisher-queue
2016-02-03T16:23:36Z message: sent to %[http://localhost:80]
2016-02-03T16:24:36Z http-err: 1444d1ba-ecb5-46f8-82d6-d0bf19b91fad (1) 504 - 60.006
2016-02-03T16:28:54Z message: sent to %[http://localhost:80]
2016-02-03T16:29:54Z http-err: 1b7514d3-689a-4e8b-a569-5ef1ac32ed0c (1) 504 - 60.029
2016-02-03T16:29:54Z message: sent to %[http://localhost:80]
2016-02-03T16:29:54Z http-err: 1444d1ba-ecb5-46f8-82d6-d0bf19b91fad (2) 500 - 0.006
2016-02-03T16:33:49Z message: sent to %[http://localhost:80]
2016-02-03T16:34:49Z http-err: 3a43e80f-a8d3-46b2-b2a0-9d898ad4f2a6 (1) 504 - 60.023
2016-02-03T16:34:54Z message: …
Run Code Online (Sandbox Code Playgroud)

nginx worker amazon-sqs amazon-web-services amazon-elastic-beanstalk

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

重新启用iPhone模拟器位置服务

我已经在模拟器上禁用了"请勿再询问"选项集,并认为我可以在以后重新启用它,但现在我无法找到方法.

有人能指出我在哪里更改此设置?

谢谢.

core-location ios-simulator

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

Objective-C中的类级属性(删除警告)

我已经读过Objective-C没有类级别属性的地方,但是通过声明类似的东西(在类接口之前)可以实现相同的目的:

static NSInteger initCount;
Run Code Online (Sandbox Code Playgroud)

我正在使用initialize方法将变量初始化为零:

// interface
+ (void) initialize;

// implementation
+ (void) initialize {
   initCount = 0;
}
Run Code Online (Sandbox Code Playgroud)

在创建实例/ dealloc'd时递增/递减:

- (id) init {
    self = [super init];

    initCount++;

    return self;
}

- (void) dealloc {
    [name release];

    initCount--;

    [super dealloc];
}
Run Code Online (Sandbox Code Playgroud)

但XCode一直警告我"'initCount'定义但未使用".

有没有办法解决这个问题,还是应该忽略警告?

cocoa warnings objective-c

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