小编nom*_*ann的帖子

Xcode 5 - DVTPlugInCompatibilityUUID中不存在所需的插件?

在将Xcode升级到v5.0.1之后,当我尝试在项目文件夹中运行git命令时,我开始在终端中收到以下警告:

[MT] PluginLoading:所需的插件兼容性UUID 37B30044-3B14-46BA-ABAA-F01000C27B63用于插件路径'〜/ Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin'不存在在DVTPlugInCompatibilityUUIDs中

我没有在Xcode中得到任何警告,项目编译得很好,但必须有一个原因.任何想法为什么会发生这种情况以及如何解决它?

iphone xcode xcode5

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

如何在OpenGL ES for iphone中加载和显示图像

我是新手,并尝试使用OpenGL ES在我的iPhone屏幕上显示精灵.我知道使用cocos2d更简单,更容易,但现在我正在尝试直接在OpenGL上编码.是否有任何简单而有效的方法来加载和显示OpenGL ES中的精灵.到目前为止我发现的东西要复杂得多.:(

iphone textures opengl-es objective-c sprite

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

无法在我的项目中添加libpng库

我是iPhone开发的新手,并尝试使用libpng加载PNG,但在尝试了这么多之后无法将其添加到我的项目中.将libpng添加到项目中时出现以下错误.请帮我解决这些错误:

  • "_deflateReset",来自......

  • "_inflateEnd",引自......

  • "_*inflate",引自......

  • "_deflate",引自......

  • " inflateInit ",引自......

  • "_crc32",引自......

  • " deflateInit2 ",引自......

  • "_inflateReset",引自......

  • "_deflateEnd",引自......

iphone xcode png static-libraries libpng

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

BitmapFactory.decodeFile在Android 4.4 KitKat上返回异常

我想使用以下代码显示图像:

protected void onActivityResult(int requestCode, int resultCode, 
       Intent imageReturnedIntent) {
    super.onActivityResult(requestCode, resultCode, imageReturnedIntent); 

    switch(requestCode) { 
    case SELECT_PHOTO:
        if(resultCode == RESULT_OK){  
            Uri selectedImage = imageReturnedIntent.getData();
            String[] filePathColumn = {MediaStore.Images.Media.DATA};

            Cursor cursor = getContentResolver().query(
                               selectedImage, filePathColumn, null, null, null);
            cursor.moveToFirst();

            int columnIndex = cursor.getColumnIndex(filePathColumn[0]);
            String filePath = cursor.getString(columnIndex);
            cursor.close();
            Log.wtf("M3K", "Above decode");
            Bitmap logoBMP = BitmapFactory.decodeFile(filePath);
            Log.wtf("M3K", "Below decode");

            //Display image on layout
            Log.wtf("M3K", "Above display");
            logo.setImageBitmap(logoBMP);
            Log.wtf("M3K", "Below display");
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

问题出Bitmap logoBMP = BitmapFactory.decodeFile(filePath);在Android 4.4(在我的Nexus 7上测试)上,它将返回一个未找到文件的异常,原因是EACCES(Permission …

android android-bitmap

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