小编Tek*_*Yin的帖子

无法在PhpStorm中的"添加作曲家依赖"中生成DH密钥对

我得到了警告

Could not get package info. Failed to connect to https://packagist.org/packages/list.json: java.lang.RuntimeException: Could not generate DH keypair Please check your internet connection.
Run Code Online (Sandbox Code Playgroud)

在WebStorm上打开Composer Dependency时...经过一些搜索后,有人说这可能是由java SDK引起的.但是,即使我将Java更新到最新版本java 8u45,问题仍然存在.

在此输入图像描述

java phpstorm composer-php

26
推荐指数
2
解决办法
4406
查看次数

如何使用意图选择文件浏览器来选择文件

如何使用意图提示用户选择"完成操作"来选择应用程序来选择文件(假设有几个应用程序来浏览设备中的文件)

我想使用扩展名来过滤文件..(例如:*.sav,*.props)

先感谢您

android android-intent

17
推荐指数
2
解决办法
6万
查看次数

如何使用复选框创建ListPreference

如何创建一个ListPreferencecheckbox?我知道如何使用ListPreference,但我需要在"重复"首选项的警报应用程序中进行多项选择.

像这个截图:

复选框

checkbox android preference listpreference

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

如何防止其他视图被推出屏幕

这是示例XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <LinearLayout android:layout_width="match_parent"
        android:layout_height="wrap_content" android:orientation="vertical"
        android:layout_margin="5dip" android:background="#FF992222">
        <ScrollView android:layout_height="wrap_content"
            android:layout_width="fill_parent">
            <LinearLayout android:layout_height="wrap_content"
                android:orientation="vertical" android:layout_width="fill_parent">
                <TextView android:layout_width="wrap_content" android:text="TextView"
                    android:layout_height="wrap_content" android:textSize="24dip"></TextView>
            </LinearLayout>
        </ScrollView>
    </LinearLayout>
    <LinearLayout android:layout_width="match_parent"
        android:layout_height="wrap_content" android:orientation="vertical"
        android:layout_margin="5dip" android:background="#FF555555">
        <TextView android:layout_width="wrap_content" android:text="TextView"
            android:layout_height="wrap_content" android:textSize="24dip"></TextView>
    </LinearLayout>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

结果是这样的:

在此输入图像描述

如果您注意到,上层LinerLayout中的文本包含在LinearLayout和ScrollView中.

如果添加了上面的内容,它将如下所示

在此输入图像描述

在ScrollView变为活动状态之前,底部Linearlayout将被推出屏幕,并使第一个内容变为可滚动....我不希望发生这种情况......

如何在底部视图被推出屏幕之前制作Scrollview,如下所示:

(这是编辑过的图像,不是由Android Layout编辑器创建的)

在此输入图像描述

希望问题足够清楚..谢谢:)

layout android scrollview

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

Facebook IOS SDK 3.1.1与Xcode 4.5.2错误

我是iOS中的Facebook SDK新手.为什么我在构建项目时遇到此错误...

我只需从Facebook SDK的ios教程中创建一个基本步骤的新项目.

  • 下载Facebook SDK(我使用3.1.1)
  • Xcode(我使用4.5.2)
  • 在加入"-lsqlite3.0" Other Linker FlagsBuild Setting
  • 添加FacebookSDK.framework
  • 添加FacebookSDKResources.bundle
  • 添加FBUserSettingsViewResources.bundle

我尝试构建,一切都好......所以我继续在AppDelegate上编写基本实现

- (BOOL)application:(UIApplication *)application
            openURL:(NSURL *)url
  sourceApplication:(NSString *)sourceApplication
         annotation:(id)annotation {
    return [FBSession.activeSession handleOpenURL:url];
}
Run Code Online (Sandbox Code Playgroud)

#import <FacebookSDK/FacebookSDK.h>
Run Code Online (Sandbox Code Playgroud)

当我尝试构建时,错误即将发生......这是日志

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_ACAccountStore", referenced from:
      objc-class-ref in FacebookSDK(FBSession.o)
  "_ACFacebookAudienceFriends", referenced from:
      -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
  "_ACFacebookAppIdKey", referenced from:
      -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
  "_ACAccountTypeIdentifierFacebook", referenced from:
      +[FBSession renewSystemAuthorization] in FacebookSDK(FBSession.o)
  "_ACFacebookAudienceKey", referenced from:
      -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in FacebookSDK(FBSession.o)
  "_ACFacebookAudienceOnlyMe", referenced from:
      -[FBSession authorizeUsingSystemAccountStore:accountType:permissions:defaultAudience:isReauthorize:] in …
Run Code Online (Sandbox Code Playgroud)

sdk facebook ios xcode4.5

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

如何将焦点设置在TLFTextField上

喜欢标题说.如何在运行时设置焦点TLFTextField?

我已经做了一些研究,并在SO中找到了一些问题,如下所示如何将焦点设置为TLFTextfield对象

在少数论坛上,他们说要使用这段代码

stage.focus = txt;
Run Code Online (Sandbox Code Playgroud)

要么

txt.stage.focus = txt;
Run Code Online (Sandbox Code Playgroud)

要么

txt.textFlow.interactionManager.setFocus();
Run Code Online (Sandbox Code Playgroud)

但没有一个对我有用..我会尝试简单的项目,但仍然失败..

我需要表现出MovieClipTLFTextField和关注吧..所以用户只需键入编辑在TLFTextField.

我的代码:

public function TFLayer() {
    tf = new TLFTextField();
    tf.width = 400;
    tf.height = 30;
    tf.x = 300;
    tf.y = 300;
    tf.border = true;
    tf.type = TextFieldType.INPUT;
    tf.backgroundColor = 0xffffff;
    tf.text = "Lorem ipsum";
    addChild(tf);

    tf.textFlow.interactionManager.setFocus();
}
Run Code Online (Sandbox Code Playgroud)

air flash actionscript-3 tlf

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

如何阅读Zip文件中的评论?

如何使用Java在Zip文件中读写注释?

我可以这样写评论:

FileOutputStream fos = new FileOutputStream(output);
ZipOutputStream zos = new ZipOutputStream(fos);
zos.setComment("BMC Comment");
Run Code Online (Sandbox Code Playgroud)

java zipfile

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

如何像键盘一样在TabBar上显示UIDatePIcker

我知道在这个网站上谈论这个问题很少...但我找不到真正的答案,我可以使用...

我有一个包含常见形式UITextFieldUIButton,理应表现出UIDatePicker从底部滑动,当用户点击按钮......

主要问题是:

  • 如何UIDatePicker在TabBar 上显示像iphone键盘一样
  • 如何让它UIDatePicker像键盘一样,所以当我选择日期时点击UITextField,它改为键盘,反之亦然......就像iphone联系一样.

提前致谢

iphone uidatepicker uitabbarcontroller ios

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