草庐IT

title_buffer

全部标签

ios - AVPlayer seekToTime : doesn't use buffer

我正在开发一个使用HTTPLiveStreaming技术播放视频的应用程序。为此,我使用AVPlayer初始化如下:[[AVPlayeralloc]initWithURL:[NSURLURLWithString:VIDEO_URL]];然后我使用self.player.currentItem.loadedTimeRanges检查缓冲区的状态,并在我的自定义View上显示这个范围。问题是当在由[self.playerseekToTime:timeToSeektoleranceBefore:kCMTimeZerotoleranceAfter:kCMTimeZero];,加载视频开始就像它不

ios - 实体 (null) 与键 "title"的键值编码不兼容

我正在尝试让RestKit和CoreData协同工作。我越来越近了,但出现以下错误:CoreData:error:FailedtocalldesignatedinitializeronNSManagedObjectclass'Book'***Terminatingappduetouncaughtexception'NSUnknownKeyException',reason:'[valueForUndefinedKey:]:theentity(null)isnotkeyvaluecoding-compliantforthekey"title".'在我看来,它成功地找到了我的Book类,并

ios - UIButton 异常 : Unable to set title for a custom button type

我正在尝试为我以编程方式创建的自定义按钮设置标题。按钮的图像和框架出现正常,但标题没有。我真的想不出这段代码有什么问题,所以非常感谢您的帮助!self.helpButton=[UIButtonbuttonWithType:UIButtonTypeCustom];[self.helpButtonsetFrame:CGRectMake(113.0,685.5,73.0,40.0)];UIImage*helpImg=[UIImageimageNamed:@"11_HelpCancel_Up.png"];[self.helpButtonsetImage:helpImgforState:UICo

安卓工具栏: small title text in landscape mode

我正在Android上测试新的Toolbar和AppCompat主题并遇到了问题。我的工具栏标题文本在纵向模式下看起来正常大小,但在横向模式下变得相当小,尽管我没有在代码中做任何事情来更改标题的文本大小。以下是屏幕截图:activity_main.xml:styles.xml:false@color/primary@color/primary_dark@color/accenttrue 最佳答案 我试图设置工具栏的android:titleTextAppearance但样式没有被应用。然后我意识到我正在使用AppCompat主题,所

安卓工具栏: small title text in landscape mode

我正在Android上测试新的Toolbar和AppCompat主题并遇到了问题。我的工具栏标题文本在纵向模式下看起来正常大小,但在横向模式下变得相当小,尽管我没有在代码中做任何事情来更改标题的文本大小。以下是屏幕截图:activity_main.xml:styles.xml:false@color/primary@color/primary_dark@color/accenttrue 最佳答案 我试图设置工具栏的android:titleTextAppearance但样式没有被应用。然后我意识到我正在使用AppCompat主题,所

iOS 10 相机 View 显示 API_Cancel_Title 而不是取消

我正在开发一款使用iOS10并使用相机拍照的应用。当相机View打开时,没有取消按钮,而是标题“API_CANCEL_TITLE”。当我捕捉到整个标题的图片时,我希望它看起来像“取消”,而不是这个长标题。我使用过应用程序本地化。我搜索了几个链接,但找不到解决方案。这是屏幕截图:这仅在iOS10中发生,在iOS9中它会正常工作这是代码:-(IBAction)takePicturePressed:(UIButton*)sender{UIImagePickerController*picker=[[UIImagePickerControlleralloc]init];picker.deleg

ios - MapKit 异常 : Cannot remove an observer for the key path "title"

我遇到过很多这样的崩溃。在我的代码中,我没有对我的MKAnnotation对象执行任何可以解释此异常的KVO。所以对我来说,它看起来像是一个iOS错误。有没有其他人遇到过类似的崩溃?***Terminatingappduetouncaughtexception'NSRangeException',reason:'Cannotremoveanobserverforthekeypath"title"frombecauseitisnotregisteredasanobserver.'Thread0Crashed:0libSystem.B.dylib0x000792d4__kill+81lib

IOS 警告 : Unable to allocate render buffer storage

我有一个简单的IOS应用程序。它包括两个工具栏和mapView。我只使用默认库(没有cocoa等)。当我在真正的iPhone5s(IOS8.1)上调试我的应用程序时,当iPhone改变方向时,我的控制台中出现“无法分配渲染缓冲区存储!0x1741f2c00”(模拟器没问题)。状态栏在真实设备和模拟器上变成横向时消失,当纵向时返回(这是我的普遍问题)。应用订阅UIDeviceOrientationDidChangeNotification。[[UIDevicecurrentDevice]beginGeneratingDeviceOrientationNotifications];[[NS

objective-c - 使用自定义动画推送 UITableViewController 始终为 UINavigationItem Title 设置动画

我使用以下代码作为UINavigationController的扩展来推送带有自定义动画的ViewController:@implementationUINavigationController(PushAnimation)-(void)pushViewController:(UIViewController*)controllerwithTransition:(UIViewAnimationTransition)transition{[UIViewbeginAnimations:nilcontext:NULL];[selfpushViewController:controlleran

ios - 如何从 vImage_Buffer 到 CVPixelBufferRef

我正在我的iOS应用程序中录制实时视频。在另一个StackOverflowpage,我发现您可以使用vImage_Buffer处理我的帧。问题是我不知道如何从输出的vImage_buffer返回到CVPixelBufferRef。这是另一篇文章中给出的代码:NSIntegercropX0=100,cropY0=100,cropHeight=100,cropWidth=100,outWidth=480,outHeight=480;CVImageBufferRefimageBuffer=CMSampleBufferGetImageBuffer(sampleBuffer);CVPixelBu