小编Vis*_*hal的帖子

架构armv7的重复符号

尝试在现有应用程序中使用Layar SDK时出现以下错误.我怎么解决这个问题?

Ld /Users/pnawale/Library/Developer/Xcode/DerivedData/hub-afxxzaqisdfliwbzxbixsaifljcl/Build/Products/Debug-iphoneos/hub.app/hub normal armv7
    cd /Users/pnawale/Documents/Paresh/Yamaha_iPhone/Code/Final/hub
    setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/pnawale/Library/Developer/Xcode/DerivedData/hub-afxxzaqisdfliwbzxbixsaifljcl/Build/Products/Debug-iphoneos -L/Users/pnawale/Documents/Paresh/Yamaha_iPhone/Code/Final/hub/ZBarSDK -L/Users/pnawale/Documents/Paresh/Yamaha_iPhone/Code/Final/hub/Infosound/Lib -L/Users/pnawale/Documents/Paresh/Yamaha_iPhone/Code/Final/hub/CrittercismSDK -L/Users/pnawale/Documents/Paresh/Yamaha_iPhone/Code/Final/hub -L/Users/pnawale/Documents/Paresh/Yamaha_iPhone/Code/Final/hub/UserVoiceSDK-2.0.4 -L/Users/pnawale/Documents/Paresh/Yamaha_iPhone/Code/Final/hub/Libraries -F/Users/pnawale/Library/Developer/Xcode/DerivedData/hub-afxxzaqisdfliwbzxbixsaifljcl/Build/Products/Debug-iphoneos -F/Users/pnawale/Documents/Paresh/Yamaha_iPhone/Code/Final/hub -filelist /Users/pnawale/Library/Developer/Xcode/DerivedData/hub-afxxzaqisdfliwbzxbixsaifljcl/Build/Intermediates/hub.build/Debug-iphoneos/hub.build/Objects-normal/armv7/hub.LinkFileList -dead_strip -ObjC -all_load -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=5.0 -lMPOAuthMobile -lsbjson-ios -framework LayarSDK -framework Social -framework AddressBook -framework AddressBookUI -framework UIKit -framework QuartzCore -framework Twitter -framework SystemConfiguration -framework Security -framework OpenAL -framework OpenGLES -framework MessageUI -framework MediaPlayer -framework Foundation -framework CoreGraphics -lc++ -framework CoreTelephony -framework CoreVideo -framework CoreMotion -framework CoreMedia -framework CoreLocation -framework …
Run Code Online (Sandbox Code Playgroud)

iphone xcode arm duplicate-symbol ios

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

向OpenEars添加新语言

我最近开始学习OpenEars语音识别,这很棒!但我还需要支持其他语言的语音识别和听写,如俄语,法语和德语.我发现这里有各种声学和语言模型.

但我真的不明白 - 我需要在应用程序中集成额外的语言支持吗?

问题是 - 我应该采取什么步骤才能在开放式耳机中成功整合,例如俄语?

据我所知 - Open Ears演示中所有英语语言和语言模型都位于文件夹hub4wsj_sc_8k中.在voxforge语言档案中可以找到相同的文件.所以我只是在演示中替换它们.有一点是不同的 - 在演示英语中,还有一个sendump2MB的大文件,它不在voxforge语言档案中.在Open Ears演示中还有两个其他文件:

  • OpenEars1.languagemodel
  • OpenEars1.dic

这些我替换为:

  • msu_ru_nsh.lm.dmp
  • msu_ru_nsh.dic

因为.dmp类似于.languagemodel.但应用程序崩溃没有任何错误.

我究竟做错了什么?谢谢.

iphone ios openears

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

从UIBarButtonItem获取UIBarButtonSystemItem

尝试单元测试我在导航栏按钮上设置了正确的UIBarButtonSystemItem.

我可以恢复样式,但似乎无法找到获取UIBarButtonSystemItem的方法

为按钮设置的枚举.由于样式与枚举不同,因此失败

UIBarButtonSystemItem:

- (void)test_init_should_set_left_right_barButtonItems {

    UIBarButtonItem *left = mainVCSUT.navigationItem.leftBarButtonItem;
    UIBarButtonItem *right = mainVCSUT.navigationItem.rightBarButtonItem;
    [Assert isNotNil:left];
    [Assert isNotNil:right];

    UIBarButtonItemStyle leftStyle = left.style;
    UIBarButtonItemStyle rightStyle = right.style;

    [Assert that:[The int:leftStyle] is:[Equal to:[The int:UIBarButtonSystemItemRefresh]]];
    [Assert that:[The int:rightStyle] is:[Equal to:[The int:UIBarButtonSystemItemSearch]]];
}
Run Code Online (Sandbox Code Playgroud)

iphone cocoa-touch unit-testing ios

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

在iPhone Navigation push中获取Parent View控制器的类名

我正在推这样的观点.

[[self.navigationController pushViewController:myViewController animated:YES];

如何从推送视图(子视图)获取父视图控制器的类名? Any Idea?

iphone push uinavigationcontroller ios

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

将视频复制到uipasteboard

我已成功地使用以下代码将图像复制或添加到粘贴板:

if (ver_float < 6.0)
{
    UIPasteboard *pasteboard;
    pasteboard = [UIPasteboard generalPasteboard];
    NSString *filePath =pathToImage;
    [pasteboard setImage:[UIImage imageWithContentsOfFile:filePath]];
}
else
{
    UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
    NSString *filePath =pathToImage;
    NSData *videoData = [NSData dataWithContentsOfFile:filePath];
    [pasteboard setData:videoData forPasteboardType:[UIPasteboardTypeListImage objectAtIndex:0]];

}

NSURL *urlstr = [NSURL URLWithString:@"sms:"];
[[UIApplication sharedApplication] openURL:urlstr];
Run Code Online (Sandbox Code Playgroud)

但我正在制作的应用程序基于图像和视频,以便用户可以通过imessage或messagecomposer发送图像/视频.但是因为我已将图像转换为数据并添加到粘贴板中.它正在成功地工作并通过imessage发送.但我还需要通过imessage发送视频.如果有人对此有任何想法,请提供一些建议或解决方案.

我非常感谢你的帮助.

iphone objective-c uipasteboard ios

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

在ios中过滤数组,检查多个属性

我有一系列自定义对象.自定义对象看起来像这样

@interface User : NSObject
@property(nonatomic, strong)NSString *user_Id;
@property(nonatomic, strong)NSString *user_Name;
@property(nonatomic, strong)NSString *user_UserName;
@end
Run Code Online (Sandbox Code Playgroud)

我有数组检查2 properties.That过滤器在我搜索a然后从数组包含它应该得到过滤的用户列表auser_Nameuser_Id.怎么我能做到这一点?对于单个属性,我知道[user_Name]

NSString *predicateString = @"user_Name MATCHES[c] %@";
NSString *matchString =  [NSString stringWithFormat: @".*%@.*",searchText];
NSPredicate *predicate =[NSPredicate predicateWithFormat:predicateString, matchString];
self.searchResults = [userArray filteredArrayUsingPredicate:predicate];
Run Code Online (Sandbox Code Playgroud)

iphone search uisearchbar nspredicate ios

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

Objective-C中的私有变量是否强大?

所以搜索Stack Overflow这似乎是如何在Objective-C中创建私有变量:

@interface ClassName()
{
@private
    NSArray* private;
}
@property (strong, nonatomic) NSArray* public;
@end
Run Code Online (Sandbox Code Playgroud)

现在这是我感到困惑的地方.该属性声明为(strong, nonatomic),但私有变量没有任何类型.那么弧怎么知道它是否强大?

iphone xcode objective-c private-members automatic-ref-counting

7
推荐指数
2
解决办法
2961
查看次数

在IMessage中正确显示视频

目前,我正在开发一个应用程序,我必须通过IMessage发送照片/视频.照片

发送代码是正常的工作,但当我通过IMessage发送视频,我只是得到

在作曲家中制作的图标没有视频显示如下:

在此输入图像描述

我正在使用此代码在IMessage中显示视频以进行发送:

if (ver_float < 6.0)
        {
            UIPasteboard *pasteboard;
            pasteboard = [UIPasteboard generalPasteboard];
            NSString *filePath =pathToVideo;
            NSData *datavideo = [NSData dataWithContentsOfFile:filePath ];
            [pasteboard setData:datavideo forPasteboardType:[UIPasteboardTypeListImage objectAtIndex:0]];
        }
        else
        {
            UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
            NSString *filePath =pathToVideo;
            NSData *videoData = [NSData dataWithContentsOfFile:filePath];
            [pasteboard setData:videoData forPasteboardType:[UIPasteboardTypeListImage objectAtIndex:0]];

        }
    NSURL *urlstr = [NSURL URLWithString:@"sms:"];
    [[UIApplication sharedApplication] openURL:urlstr];
Run Code Online (Sandbox Code Playgroud)

我怎么解决这个问题?Thanx提前.

iphone objective-c imessage mfmessagecomposeviewcontroller ios6

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

构建App Store和企业分发应用程序

我有一个应用程序,将在内部分发给100名员工,但也分发到App Store外部.

我已经注册了常规的iOS开发者会员资格以及企业开发者计划.

但是,我正在试图弄清楚如何在构建调试版本,内部版本和应用商店版本之间切换xcode.

具体而言,配置文件适用于特定的App ID.我不得不在开发人员门户中创建两个不同的应用程序ID,但我的应用程序只有1个应用程序ID(显然).

Any ideas how to have one project that could selectively build different configs...?
Run Code Online (Sandbox Code Playgroud)

iphone xcode ios provisioning-profile

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

滚动视图在按钮单击时向上和向下滚动

可能重复:以
编程方式滚动UIScrollView

目前,我正在开发一个应用程序,我已经UIScrollView和一些按钮以编程方式插入scroll view.Scrolling这些添加按钮工作正常.但是我想再添加两个按钮并在一个按钮上单击scroll view scrolling到底部并显示最后一个底部

按钮,当我点击第二个按钮时,它滚动到顶部,它显示最顶部的按钮.我已经尝试了这么多,但不能成功.我怎么解决这个问题?提前致谢.

iphone xcode uiscrollview ios ios6

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