尝试在现有应用程序中使用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) 我最近开始学习OpenEars语音识别,这很棒!但我还需要支持其他语言的语音识别和听写,如俄语,法语和德语.我发现这里有各种声学和语言模型.
但我真的不明白 - 我需要在应用程序中集成额外的语言支持吗?
问题是 - 我应该采取什么步骤才能在开放式耳机中成功整合,例如俄语?
据我所知 - Open Ears演示中所有英语语言和语言模型都位于文件夹hub4wsj_sc_8k中.在voxforge语言档案中可以找到相同的文件.所以我只是在演示中替换它们.有一点是不同的 - 在演示英语中,还有一个sendump
2MB的大文件,它不在voxforge语言档案中.在Open Ears演示中还有两个其他文件:
这些我替换为:
因为.dmp类似于.languagemodel.但应用程序崩溃没有任何错误.
我究竟做错了什么?谢谢.
尝试单元测试我在导航栏按钮上设置了正确的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) 我正在推这样的观点.
[[self.navigationController pushViewController:myViewController animated:YES];
如何从推送视图(子视图)获取父视图控制器的类名? Any Idea?
我已成功地使用以下代码将图像复制或添加到粘贴板:
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发送视频.如果有人对此有任何想法,请提供一些建议或解决方案.
我非常感谢你的帮助.
我有一系列自定义对象.自定义对象看起来像这样
@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
然后从数组包含它应该得到过滤的用户列表a
中user_Name
或user_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) 所以搜索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
目前,我正在开发一个应用程序,我必须通过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
我有一个应用程序,将在内部分发给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) 可能重复:以
编程方式滚动UIScrollView
目前,我正在开发一个应用程序,我已经UIScrollView
和一些按钮以编程方式插入scroll view.Scrolling
这些添加按钮工作正常.但是我想再添加两个按钮并在一个按钮上单击scroll view scrolling
到底部并显示最后一个底部
按钮,当我点击第二个按钮时,它滚动到顶部,它显示最顶部的按钮.我已经尝试了这么多,但不能成功.我怎么解决这个问题?提前致谢.
iphone ×10
ios ×8
xcode ×4
objective-c ×3
ios6 ×2
arm ×1
cocoa-touch ×1
imessage ×1
mfmessagecomposeviewcontroller ×1
nspredicate ×1
openears ×1
push ×1
search ×1
uipasteboard ×1
uiscrollview ×1
uisearchbar ×1
unit-testing ×1