如何在ios中的自定义MapBox导航控制器中添加MBFloatingButton?
我想向MBNavigationViewController添加自定义按钮。请查看带有红色圆圈的参考图像。 提前谢谢。如何在ios中的自定义MapBox导航控制器中添加MBFloatingButton?,ios,objective-c,mapbox,Ios,Objective C,Mapbox,我想向MBNavigationViewController添加自定义按钮。请查看带有红色圆圈的参考图像。 提前谢谢。 如果有人在寻找答案。 请查找以下代码 MBNavigationViewController *nav = [[MBNavigationViewController alloc] initWithRoute:routeFinded directions:[MBDirections sharedDirections] style: nil
如果有人在寻找答案。 请查找以下代码
MBNavigationViewController *nav = [[MBNavigationViewController alloc] initWithRoute:routeFinded directions:[MBDirections sharedDirections] style: nil
locationManager: location];
MBNavigationView *navigationView = (MBNavigationView *)[nav.view.subviews objectAtIndex:0];
UIStackView *navigationStackView = (UIStackView *)[navigationView.subviews objectAtIndex:2];
上面的这些线将获得UIStackView对象。
通过以下操作,我们可以在stackview中添加视图
[navigationStackView addArrangedSubview:<yourview>];
[navigationStackView添加ArrangedSubView:];
什么是MBNavigationViewController?。显示一些代码。