在iPad上显示RMMapView的Mapbox NSInternalInconsistencyException

时间:2014-04-01 22:46:42

标签: ios ipad mapbox

试图让原生iOS Mapbox视图在实际设备(第三代iPad,iOS 7.1)上运行时遇到麻烦。

dprintf( "RMMapboxSource\n" );
RMMapboxSource * tileSource = [[RMMapboxSource alloc] initWithMapID:mystyle];

dprintf( "RMMapView\n" );
RMMapView * mapView = [[RMMapView alloc] initWithFrame:CGRectMake(0,0,900,450) andTilesource:tileSource];

dprintf( "addChild\n" );
// ... mapView then added to view hierarchy

dprintf( "setPage\n" );
// ... then make visible

模拟器中的一切都很棒。但是试图在实际的iPad上运行会产生以下结果。

RMMapboxSource
RMMapView
addChild
setPage
2014-04-01 15:41:21.879 Protraak[1179:60b] *** Assertion failure in -[UIView layoutSubviews], /SourceCache/UIKit/UIKit-2935.137/UIView.m:5326
2014-04-01 15:41:21.881 Protraak[1179:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'layout should have been successfully accomplished'

谷歌搜索“布局应该已经成功完成”出现了空白。

1 个答案:

答案 0 :(得分:0)

您可以尝试最新的develop分支,看看它是否适合您?