下の画像をご覧ください。私はxcode 4.5.2も使用していることに注意してください。私はgithub Example #2の JASidePanels の例に従いましたが、このブラック ボックスを取り除くことができないようです! それ以外の場合、SidePanel は実際には期待どおりに機能します。=)
私の centerViewController と leftViewController も同じように見えます (以下のコード)。しかし、例にあるように実行しようとしたとき、そのような運がなかったので、JASidePanelController をサブクラス化する必要がありました。
centerViewController.h:
#import "JASidePanelController.h"
@interface centerViewController : JASidePanelController
@end
centerViewController.m
#import "centerViewController.h"
@interface centerViewController ()
@end
@implementation centerViewController
- (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)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
私は何かが欠けている可能性がありますか?メインの JASidePanelController 自体の rightViewController を削除するために、数行のコードをコメントアウトしました。これが問題を引き起こしている可能性があり、さらに問題が発生しただけだと考えています。左と中央を使用しているだけなので、例の rightViewController のコードはありません。そのため、コードをデフォルトに戻すと、シミュレーターのアプリの上にブラック ボックスが残ります。
前もって感謝します!