我创建了一个视图控制器并寻找一种方法来创建指向导航栏的指针。在情节提要中,已经有一个 UINavigationBar 我在这里得到了手势部分:
UILongPressGestureRecognizer* someGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:theNavBar action:@selector(paintGesture:)];
adminGesture.minimumPressDuration = 1; // recognize as soon as the touch goes down
//adminGesture.delegate = self;
[self.view addGestureRecognizer:adminGesture];
但不知道如何调用 theNavBar
UINavigationItem*theNavBarTitle = self.navigationItem;
那是对的吗?我究竟做错了什么?提前致谢。