1
我在導航控制器中顯示視圖後 變暗ZXingWidgetController。在解散ZXingWidgetController後顯示導航控制器中的視圖
以下是這些步驟。
-
模態使用
- 當前ZXingWidgetController [自我presentModalViewController:widController動畫:YES];
- 掃描結果後在委託返回 (無效)zxingController:(ZXingWidgetController *)控制器didScanResult:(的NSString *)resultString)
駁回ZXingWidgetController和在導航控制器推視圖控制器。
[dismiss ZXingWidgetController: [self dismissModalViewControllerAnimated:YES];
推入導航控制器視圖控制器:
ParsedResult *parsedResult = [[UniversalResultParser parsedResultForString:resultString] retain];
self.result = [parsedResult retain];
self.actions = [self.result.actions retain];
ScanViewController *scanViewController = [[ScanViewController alloc]
initWithResult:parsedResult forScan:scan];
[self.navigationController pushViewController:scanViewController
animated:NO];
[scanViewController release];
但是這導致成導航欄被隱藏在背後的狀態欄 部分。
請讓我知道我該如何解決這個問題?