小编Big*_*oke的帖子

Xcode中的多行注释

有没有办法在Xcode IDE中同时评论各种线?选择要评论的行,然后单击某处以及/或...*/包装代码的字符.

谢谢.

xcode

66
推荐指数
4
解决办法
7万
查看次数

TTViewController和popupViewController方法

我正在使用TTLauncherView,为此,我将视图控制器声明为TTViewController,就像在TTCatalog教程应用程序中一样.在该视图中声明TTLauncherView var,添加项目等.

在我的应用程序的主视图中是一个按钮,使用以下代码调用上一个视图:

-(void) switchToButtonOrderingView
{
    ButtonOrderingViewController *ButtonOrderingView=
    [[ButtonOrderingViewController alloc] initWithNibName:@"ButtonOrderingViewController" bundle:nil]; 
    self.ButtonOrderingViewController = ButtonOrderingView; 
    [self.view insertSubview:ButtonOrderingView.view atIndex:10];
}
Run Code Online (Sandbox Code Playgroud)

当我按下按钮时,应用程序会在这个属于TTViewController.m的方法中刹车:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
  UIViewController* popup = [self popupViewController]; //brakes up here
  if (popup) {
    return [popup shouldAutorotateToInterfaceOrientation:interfaceOrientation];
  } else {
    return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
  }
}
Run Code Online (Sandbox Code Playgroud)

而错误就是这样:

[ButtonOrderingViewController popupViewController]:无法识别的选择器发送到实例

选中查看Three20 Class Hierarchy和TTViewController是一个UIViewController子类.

popupViewController是一个TTPopViewController(及其子类)方法!我没有使用TTCatalog教程应用程序.我迷路了.任何帮助将不胜感激.

谢谢.

iphone uiviewcontroller three20

5
推荐指数
1
解决办法
2194
查看次数

标签 统计

iphone ×1

three20 ×1

uiviewcontroller ×1

xcode ×1