我的导航栏有问题,UIBarButtonItem没有正确垂直对齐.我不知道为什么,因为我使用的是简单的UIBarButtonItem,而不是自定义视图.请参阅下面的代码并感谢您的帮助!
UIBarButtonItem *newGameItem = [[UIBarButtonItem alloc] initWithTitle:@"New Game" style:UIBarButtonItemStyleDone target:self action:@selector(newGame)];
self.navigationItem.rightBarButtonItem = newGameItem;
Run Code Online (Sandbox Code Playgroud)
objective-c uinavigationbar vertical-alignment uibarbuttonitem ios
我正在AVCaptureSession
和我一起工作AVCaptureMetadataOutput
.
它工作得很好,但我只是想知道如何指示只扫描和分析元数据对象的特定区域AVCaptureVideoPreviewLayer
?