我最近更新了Xcode,并收到以下警告:

我尝试了编辑器 - >解决自动布局问题 - >清除视图控制器中的所有约束但它不起作用...我正在使用Xcode 5.如何删除警告?
我想要一些我的ViewControllers景观和一些肖像,所以这就是我做的:
我启用了横向模式:

接下来,我将这些代码行添加到我想成为肖像的视图控制器中:
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationPortrait;
}
-(BOOL)shouldAutorotate
{
return NO;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
return UIInterfaceOrientationPortrait;
}
Run Code Online (Sandbox Code Playgroud)
然而,当我旋转它们时,它们仍然会进入横向模式.我怎么能解决这个问题?
我刚刚创建了我的第一个Mac应用程序,但该程序不断崩溃:
Unable to load nib file: MainWindowController.xib, exiting
我所做的就是删除MainMenu.xib并创建MainWindowController.xib并将其添加为MainInterface.

我正在尝试将我的应用程序提交到应用程序商店,但我收到来自Apple的错误消息:
亲爱的开发者,
我们发现您最近为"我的应用"发送了一个或多个问题.要处理您的交付,必须纠正以下问题:
无效的捆绑包 - 您的应用程序引用的一个或多个动态库不在dylib搜索路径中.
一旦纠正了这些问题,您就可以重新更新已更正的二进制文件.
问候,
App Store团队
我尝试使用这个答案找出错误但我仍然卡住了.我导出了应用程序的iPA文件,并使用该otool -L MyApp命令查找框架.结果如下:
这些是我的iPA文件框架:
我使用carthage下载了所有框架,并将框架添加到嵌入式框架部分:
但是,当我提交应用程序时,我会从Apple收到相同的电子邮件.
谢谢!
我用谷歌搜索了很多,我也给 Adcolony
支持发送了一封邮件(http://support.adcolony.com/customer/portal/emails/new),但我仍然没有收到他们的任何邮件。
I got ads perfectly, but after some time onwards im not getting any ads and also
getting error message like "**There is currently no fill for zone zone id with slot
0**"
and also **"Video ad requested but not served in zone zone id with slot 0"**
Please assist me, How to get ads on every button tap on ios app.
Run Code Online (Sandbox Code Playgroud) 我正在向我的应用添加一个MPMoviePlayerViewController,如下所示:
MPMoviePlayerViewController *vc = [[MPMoviePlayerViewController alloc] initWithContentURL:movieURL];;
[self presentMoviePlayerViewControllerAnimated:vc];
Run Code Online (Sandbox Code Playgroud)
一切正常,但我无法启用横向模式.我希望我的整个应用程序除了实际的MPMoviePlayerViewController是肖像.我在谷歌搜索,但所有的解决方案都需要在横向上使用其他应用程序.我需要我的应用程序保留在纵向除了MPMoviePlayerViewController.
提前致谢!
编辑:
使用@matt回答我将横向添加到我的设备方向:

接下来我去了我的第一视图控制器(不是MPMoviePlayerViewController)并添加了:
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskPortrait;
}
Run Code Online (Sandbox Code Playgroud)
然而,应用程序仍然让主菜单进入横向模式.
我试图从我的AppDelegate更改视图控制器,如下所示:
UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
UIViewController *vc = [storyBoard instantiateInitialViewController];
NSLog(@"ViewController: %@",vc);
self.window.rootViewController = vc;
NSLog(@"ViewController: %@",self.window.rootViewController);
Run Code Online (Sandbox Code Playgroud)
然而,屏幕仍然是黑色的.这是我的NSLogs:
ViewController: MyViewController
ViewController: (null)
Run Code Online (Sandbox Code Playgroud) 我在我的项目中添加了Parse SDK,一切都很顺利.但是,当我退出Xcode并打开项目时,我遇到了以下错误:
Parse/Parse.h file not found
Run Code Online (Sandbox Code Playgroud)
我删除了Parse Framework并将其重新添加到我的项目中,错误消失了.但是每当我退出Xcode并重新打开这个项目时,我都会遇到这些错误.
我该怎么办?
提前致谢.
我正在努力实现这样的目标:

但结果是这样的:

这是我的 HTML 代码:
<!doctype html>
<html>
<head>
<title>Test</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<p>Text</p>
<p>Text 2</p>
<p align="center">
<img src="Images/image" width="150" height="150" alt="Image"/>
</p>
<p>Test 3</p>
<p>Test 4</p>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
这是我的 CSS:
@charset "UTF-8";
/* CSS Document */
body
{
background-color:#00A1B3;
}
img
{
display:inline;
}
p
{
display:inline-block;
float:left;
}
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?
我需要在我的应用中打开一个.ics文件.
我试着像这样打开它:
NSURL *path = [[NSBundle mainBundle] URLForResource:@"myIcsName" withExtension:@"ics"];
[[UIApplication sharedApplication] openURL:path];
Run Code Online (Sandbox Code Playgroud)
但什么都没发生.
我怎么打开.ics文件?