我已经将我的x代码版本从5.0更新到5.1
我在我的项目中使用了ZBarSDK来扫描条形码.在模拟器'iPhone Retina(3.5英寸)'和'iPhone Retina(4英寸)',它工作正常.但是当我想用模拟器'iPhone Retina(4英寸64位)'构建时,它会出现以下错误.
ld: warning: ignoring file /Users/sayan/Desktop/ProjectAtanu/Omlis/Custom Classes/ZBarSDK/libzbar.a, missing required architecture x86_64 in file /Users/sayan/Desktop/ProjectAtanu/Omlis/Custom Classes/ZBarSDK/libzbar.a (3 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_ZBarReaderViewController", referenced from:
objc-class-ref in HomeViewController.o
"_ZBarReaderControllerResults", referenced from:
-[HomeViewController imagePickerController:didFinishPickingMediaWithInfo:] in HomeViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
架构:标准架构(arm64,armv7,armv7s) - $(ARCHS_STANDARD)
有效架构:arm64,armv7,armv7s
基础SDK:最新IOS(IOS 7.1)
iOS部署目标:iOS 6.1
任何帮助非常感谢!
我有桌子视图.在其中我有部分,每个部分只有一行.我使用这些部分,以便我可以控制标题高度的行之间的空间.我想添加填充,UITableView以便我可以cells/sections从设备的边缘隔开.间距需要具有UITableView背景的颜色.
我面临一个奇怪的问题Xcode 10。每当我在storyboard或上发生冲突时plist,Xcode都不会向我展示解决冲突的正确方法。请参阅屏幕快照,这是一个案例的storyboard例子。如果我发现plist文件冲突,那么我什至无法打开它(Xcode说文件格式不正确)。现在正在使用它Xcode 9.4来解决此问题。有没有办法修复它Xcode 10。提前致谢。
我用的UIWebView是玩Yoytube Video.
我的代码就是这样
self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0,320, 240)];
[self.webView setBackgroundColor:[UIColor clearColor]];
[self.webView setOpaque:NO];
self.webView.delegate=self;
[self.webView setAllowsInlineMediaPlayback:YES];
[self.webView setMediaPlaybackRequiresUserAction:NO];
[self.viewContent addSubview:self.webView];
NSString* embedHTML = [NSString stringWithFormat:@"\
<html>\
<body style='margin:0px;padding:0px;'>\
<script type='text/javascript' src='http://www.youtube.com/iframe_api'></script>\
<script type='text/javascript'>\
function onYouTubeIframeAPIReady()\
{\
ytplayer=new YT.Player('playerId',{events:{onReady:onPlayerReady}})\
}\
function onPlayerReady(a)\
{ \
a.target.playVideo(); \
}\
</script>\
<iframe id='playerId' type='text/html' width='%d' height='%d' src='http://www.youtube.com/embed/%@?enablejsapi=1&rel=0&playsinline=1&autoplay=1' frameborder='0'>\
</body>\
</html>", 320, 240, [dictIW valueForKey:@"embedCode"]];
[self.webView loadHTMLString:embedHTML baseURL:[[NSBundle mainBundle] resourceURL]];
Run Code Online (Sandbox Code Playgroud)
在模拟器中它玩起来非常好.但是当我在iPhone或iPad上播放这个视频时,视频正在显示,但声音没有得到.
请帮忙.
ios ×3
objective-c ×3
xcode ×2
architecture ×1
git ×1
plist ×1
storyboard ×1
uitableview ×1
uiwebview ×1
video ×1
youtube ×1