Events 这是EKEventEditViewController的错误吗 我发现EKEventEditViewController在中不正确 UIInterfaceOrientation。 在你的网站上试试这个演示,我只是改变了代码如下,把模拟器放到 倒立肖像模式,然后点击“+”按钮,你会发现屏幕在 闪光,这是由于对话框在短时间内是向上的。 然后你们可以在设备上试一下,转到UpSideDown模式,你们会看到我在说什么:) 我想知道为什么他们在模拟器或iPad上有不同的观点,即使是这样 不是虫子。

Events 这是EKEventEditViewController的错误吗 我发现EKEventEditViewController在中不正确 UIInterfaceOrientation。 在你的网站上试试这个演示,我只是改变了代码如下,把模拟器放到 倒立肖像模式,然后点击“+”按钮,你会发现屏幕在 闪光,这是由于对话框在短时间内是向上的。 然后你们可以在设备上试一下,转到UpSideDown模式,你们会看到我在说什么:) 我想知道为什么他们在模拟器或iPad上有不同的观点,即使是这样 不是虫子。,events,ios,calendar,Events,Ios,Calendar,基本上,您希望创建自己的类,该类继承自EKEventEditViewController,并在通常使用EKEventEditViewController的任何地方使用它。例如,KonopEventEditViewController KonopEventEditViewController.h如下所示 I found EKEventEditViewController is not correct in UIInterfaceOrientationPortraitUpside. Try th

基本上,您希望创建自己的类,该类继承自EKEventEditViewController,并在通常使用EKEventEditViewController的任何地方使用它。例如,KonopEventEditViewController

KonopEventEditViewController.h如下所示

I found EKEventEditViewController is not correct in UIInterfaceOrientationPortraitUpside. Try this demo from your site, I just changed code as below, put simulator to UpSide Down Portrait mode, then click "+" button, you will find the screen in flash, this is due to dialog is upside in short time. Then you can try it on device turn to UpSideDown mode, you will see what I am talking:) I want to know why they have different view in Simulator or iPad even if it is not a bug.
#import <EventKitUI/EventKitUI.h>

@interface KonopEventEditViewController : EKEventEditViewController

@end

不要将常规文本标记为代码(不要在其周围放置标记)。
#import "KonopEventEditViewController.h"

@interface KonopEventEditViewController ()

@end

@implementation KonopEventEditViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return YES;
}

@end